小编The*_*era的帖子

Angular 14 错误:转换失败,出现 1 个错误:错误:未终止的字符串标记

运行 ngserve 时我得到以下结果:

*./src/main.ts - 错误:模块构建失败(来自./node_modules/@ngtools/webpack/src/ivy/index.js)../.component.scss:17:100:错误:未终止的字符串标记

*./src/polyfills.ts` - 错误:模块构建失败(来自./node_modules/@ngtools/webpack/src/ivy/index.js)../.component.scss:17:100:错误:未终止的字符串代币

这个有棱角的版本

    角度 CLI:14.0.6
    节点:16.16.0
    包管理器:NPM 8.14.0
    操作系统:win32 x64
    
    角度:14.0.6
    
    套餐版本
    -------------------------------------------------- --------
    @Angular-devkit/建筑师0.1400.6
    @Angular-devkit/build-Angular 14.0.6
    @Angular-devkit/核心 14.0.6
    @angular-devkit/schematics 14.0.6
    `@角度/cdk 14.0.5`
    @角度/材料14.0.5
    @nguniversal/express-engine 7.1.1
    @schematics/角度14.0.6
    `rxjs 6.6.7`
    打字稿 4.6.4

/.组件.scss

input[type=text]:disabled {
  color: black;
}

.search-row {
  .form-group > label {
    font-size: 1.1em !important;
      color: black;
  }
}

.mat-table {
  th.mat-header-cell {
    font-size: 1.1em !important;
      color: black;
  }
}//<< here line 17.


#block {
  margin: 0% 10%;
}
...
Run Code Online (Sandbox Code Playgroud)

感谢您的帮助

css sass node-sass angular

22
推荐指数
3
解决办法
2万
查看次数

标签 统计

angular ×1

css ×1

node-sass ×1

sass ×1