Error running BuildClientProjects.bat

We are having issues on one of our build servers. One step is to execute BuildClientProjects.bat but it fails with the following error:

Ensure 'NPM' is installed
Ensure 'yarn' is installed
building extensions module...
yarn install v1.22.10
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
error An unexpected error occurred: "https://packages.litium.com/Npm/litium-ui?: Request failed \"404 Not Found\"".
info If you think this is a bug, please open a bug report with the information provided in "D:\\a\\1\\s\\Src\\Litium.Accelerator.FieldTypes\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
yarn run v1.22.10
$ webpack --mode production --config ./config/webpack/webpack.js --color
[webpack-cli] Failed to load 'D:\a\1\s\Src\Litium.Accelerator.FieldTypes\config\webpack\webpack.js' config
[webpack-cli] { Error: Cannot find module 'webpack'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
    at Function.Module._load (internal/modules/cjs/loader.js:508:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (C:\npm\prefix\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:159:20)
    at Object.<anonymous> (D:\a\1\s\Src\Litium.Accelerator.FieldTypes\config\webpack\webpack.js:1:79)
    at Module._compile (C:\npm\prefix\node_modules\webpack-cli\node_modules\v8-compile-cache\v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3) code: 'MODULE_NOT_FOUND' }
error Command failed with exit code 2.

It seems to be some issues with https://packages.litium.com/Npm/litium-ui?

Litium version: 7.2.3

What does the litium-ui package look like in package.json file?

Hi!

I cannot find a litium-ui package in the package.json file

Best regards
Henrik

Sorry. Looked in the wrong file. This is the package.json in the Litium.Accelerator.FieldTypes project:
{
“name”: “litium-extensions”,
“version”: “1.0.0”,
“license”: “UNLICENSED”,
“homepage”: “https://docs.litium.com”,
“repository”: {},
“scripts”: {
“prod”: “webpack --mode production --config ./config/webpack/webpack.js --color”,
“prod:w”: “webpack --mode production --watch --config ./config/webpack/webpack.js --color”,
“build:w”: “webpack --mode development --watch --config ./config/webpack/webpack.js --color --progress --profile”,
“build”: “webpack --mode production --config ./config/webpack/webpack.js --color”,
“lint”: “tslint src/**/*.ts”
},
“devDependencies”: {
“litium-ui”: "https://packages.litium.com/Npm/litium-ui?",
“uglifyjs-webpack-plugin”: “2.1.2”,
“primeng”: “^7.0.0”,
“primeicons”: “^1.0.0”
}
}

Ok. I noticed that the version string is missing:
“devDependencies”: {
“litium-ui”: “https://packages.litium.com/Npm/litium-ui?7.2.3”,
“uglifyjs-webpack-plugin”: “2.1.2”,
“primeng”: “^7.0.0”,
“primeicons”: “^1.0.0”
}

Updated the file and everything is working as it should again.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.