使用以下命令升级cli后:
npm install --save-dev @angular/cli@latest
ng update @angular/cli --from=1.7.4
--migrate-only --allow-dirty (to convert the angular-cli.json to angular.json)
我遇到以下错误:
ERROR in ./app/assets/less/bootstrap/input-groups.less (./node_modules/css-loader?{"sourceMap":true,"minimize":false}!./node_modules/less-loader/dist/cjs.js?{"sourceMap":true,"modifyVars":{"root":"/"~@angular/../../"","styles":"/"~@angular/../../app/assets/less
/""}}!./app/assets/less/bootstrap/input-groups.less)
Module build failed (from ./node_modules/less-loader/dist/cjs.js)
有什么主意吗?
答案 0 :(得分:0)
也许尝试升级角度/核心?
ng update @angular/core