[英]angular-cli ng serve errors
angular-cli used to work perfectly, but now I don't know why when creating a new project it doesn't run the server. angular-cli用于完美地工作,但现在我不知道为什么在创建新项目时它不运行服务器。
I tried reinstalling angular-cli. 我尝试重新安装angular-cli。
I create a new app with ng new app
. 我使用
ng new app
创建了一个ng new app
。 I navigate into the /app/ path, run ng serve
and I get: 我导航到/ app / path,运行
ng serve
,我得到:
No errors
Error: No errors
at validate (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\schema\validator.js:10:9)
at Function.ExtractTextPlugin.extract (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\extract-text-webpack-plugin\index.js:188:3)
at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:79:83
at Array.map (native)
at Object.getWebpackStylesConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-build-styles.js:76:43)
at new NgCliWebpackConfig (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\models\webpack-config.js:44:51)
at Class.run (C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\tasks\serve-webpack.js:23:22)
at C:\Users\Gasti\Documents\Prgm\githubsearch\node_modules\angular-cli\commands\serve.run.js:37:22
at process._tickCallback (internal/process/next_tick.js:103:7)
From an Angular CLI developer : 来自Angular CLI开发人员 :
This problem arises from a recent update in a external dependency and it's not fixable without a CLI release right now.
此问题源于最近在外部依赖项中的更新,如果没有CLI发布,它就无法修复。
He also confirmed that the workaround is to install the dependency at version 2.0.0-rc.0: 他还确认解决方法是在2.0.0-rc.0版本上安装依赖项:
npm install extract-text-webpack-plugin@2.0.0-rc.0 --save-dev
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.