我得到以下错误:Angular4 /打字稿/自举 - 不能编译
ERROR in multi ./node-modules/bootstrap/dist/css/bootstrap.min.css ./src/styles.css Module not found: Error: Can't resolve
Module not found: Error: Can't resolve '/Users/hansdeschinkel/VSCode/Resto/node-modules/bootstrap/dist/css/bootstrap.css' in '/Users/hansdeschinkel/VSCode/Resto/node_modules/@angular/cli/models/webpack-configs'
"styles": [
"../node-modules/bootstrap/dist/css/bootstrap.min.css",
"styles.css"
],
我在node_modules
保存引导3.3.7。 我也把它添加到我的angular/cli.json
文件夹: 我使用VSCode
你可以把angular-cli.json代码放在这里吗?问题是样式需要一个与index.html相关的路径 – Gary
您确定引导程序包在'node_modules'文件夹中 – Aravind