【问题标题】:after I upgraded my angular application from angular 5.2 to the latest. ng build produces this ERROR在我将我的 Angular 应用程序从 Angular 5.2 升级到最新版本之后。 ng build 产生这个错误
【发布时间】:2019-08-03 06:58:55
【问题描述】:

./src/styles.css 中的错误 (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss- loader/src??embedded!./src/styles.css) 模块构建失败(来自 ./node_modules/postcss-loader/src/index.js): 语法错误

(60:29) 未知词

58 | .安静{

59 |文字装饰:下划线;

60 |显示:内联块; // 在表单按钮上强制加下划线

61 |颜色:#0066cc;

62 |光标:指针;

【问题讨论】:

    标签: angular


    【解决方案1】:

    因为这条线

    60 | display: inline-block; // to force underline on form button

    // 不能作为 css 中的注释使用 /* */ 代替。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-22
      • 2020-11-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-18
      • 2017-10-11
      • 1970-01-01
      相关资源
      最近更新 更多