我使用amexio
组件来帮助我开发应用程序,但是当主题已经设置并且命令ng
服务时,visual studio中的控制台打印错误
ERROR in ./node_modules/css-loader?{"sourceMap":false,"import":false}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./src/styles.cssModule
build failed: TypeError: Path must be a string. Received undefined
at assertPath (path.js:28:11)
at Object.isAbsolute (path.js:460:5)
at Promise.all.paths.map.file (C:\Users\han\Documents\myAngular\practice2\node_modules\postcss-import\index.js:193:24)
at Array.map (<anonymous>)
at Promise.resolve.then.paths (C:\Users\han\Documents\myAngular\practice2\node_modules\postcss-import\index.js:192:15)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./src/styles.css 4:14-138
@ multi ./src/styles.css
当我保存styles.css和ng服务工作时,它仍然打印消息,如上面的消息与警告。 我该如何处理这个问题?使用webpack或cssloader?
@angular/cli": "1.6.7"
@angular/compiler-cli": "^5.2.0"
amexio-ng-extensions": "^4.2.0"