我的项目运行在dot net core 2.0上,角度为4.2.
我将它更新为最新的角度(5.0.0).
从那时起,在startup.cs Configure方法中抛出异常.
我将它更新为最新的角度(5.0.0).
从那时起,在startup.cs Configure方法中抛出异常.
- app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
- {
- HotModuleReplacement = true
- });
这里因错误而失败
- Error: Version of @angular/compiler-cli needs to be 2.3.1 or greater.
- Current version is "5.0.0".
- at Object.<anonymous> (D:\Personal\Code\PettlyUi\PettlyUi\node_modules\@ngtools\webpack\src\index.js:27:11)
- at Module._compile (module.js:641:30)
- at Object.Module._extensions..js (module.js:652:10)
当我从命令行使用webpack时也会抛出相同的错误.
我也尝试过同样的新项目,但一直都失败了.这是某种错误还是我没有正确更新.
用于升级的命令:
- npm install @angular/common@latest @angular/compiler@latest
- @angular/compiler-cli@latest @angular/core@latest @angular/forms@latest
- @angular/http@latest @angular/platform-browser@latest @angular/platform-
- browser-dynamic@latest @angular/platform-server@latest
- @angular/router@latest @angular/animations@latest typescript@latest