angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Version of @angular/compiler-cli needs to be 2.3.1 or greater. Current version is "undefined".

Open ghost opened this issue 9 years ago • 43 comments

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Versions.

angular-cli: 1.0.0-beta.28.3 node: 6.10.0 os: darwin x64

Repro steps.

ng build

The log given by the failure.

As a forewarning, we are moving the CLI npm package to "@angular/cli" with the next release, which will only support Node 6.9 and greater. This package will be officially deprecated shortly after.

To disable this warning use "ng set --global warnings.packageDeprecation=false". Version of @angular/compiler-cli needs to be 2.3.1 or greater. Current version is "undefined". Error: Version of @angular/compiler-cli needs to be 2.3.1 or greater. Current version is "undefined". at Object. (.../node_modules/@ngtools/webpack/src/index.js:27:11) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) ... etc ...

Desired functionality.

Our build tool cannot crash out of the blue, having changed nothing at all in our code or configurations. Running npm install with specific versions listed for every package in the package.json should not crash the build machine, and every machine of every developer unfortunate enough to have run "npm install" locally.

Mention any other details that might be useful.

ghost avatar Mar 22 '17 00:03 ghost

@Alfetta159 I think this is caused by an old version of webpack: https://github.com/angular/angular-cli/issues/8806

mrichar1 avatar Jan 04 '18 23:01 mrichar1

The project needs a dev dependency for @angular/compiler-cli. npm install --save-dev @angular/compiler-cli@<your angular version>

Hi @clydin tried that no solution

Shubham819 avatar May 28 '20 07:05 Shubham819

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.