从 angular 11.2 升级到 12.2 时出错-styles.css-错误:(0 , _identifier.getUndoPath) 不是函数

Lee*_*ner 5 angular-cli angular

正如标题所说,在使用 ng cli 从 angular 11.2 升级到 12.2 后,我在构建我的 angular 应用程序时遇到错误:

styles.css - Error: (0 , _identifier.getUndoPath) is not a function

我没有styles.css 文件(使用styles.scss),也没有看到引用该文件的任何地方。知道可能是什么问题吗?

Mas*_*low 7

@angular-devkit/build-angular@12.2.0 似乎是问题所在。将它降级到 12.1.1 为我解决了这个问题(而 Angular 团队修复了真正的问题)

  • 真正的答案可能只是删除 package.lock & node_modules/ (2认同)