【问题标题】:angular-cli ng serve errorsangular-cling 发球错误
【发布时间】:2017-01-28 13:27:34
【问题描述】:

angular-cli 以前可以完美运行,但是现在我不知道为什么在创建新项目时它不运行服务器。

我尝试重新安装 angular-cli。

我使用ng new app 创建了一个新应用。 我导航到 /app/ 路径,运行 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)

【问题讨论】:

    标签: javascript angular angular-cli


    【解决方案1】:

    来自an Angular CLI developer

    此问题是由外部依赖项的最近更新引起的,如果没有 CLI 版本,目前无法修复。

    他还确认解决方法是安装2.0.0-rc.0版本的依赖:

    npm install extract-text-webpack-plugin@2.0.0-rc.0 --save-dev
    

    【讨论】:

      猜你喜欢
      • 2018-03-05
      • 2017-03-14
      • 2017-07-24
      • 2023-03-20
      • 1970-01-01
      • 2018-10-07
      • 2023-04-04
      • 2018-10-30
      • 1970-01-01
      相关资源
      最近更新 更多