Estou com um problema ao adicionar o bootstrap no arquivo angular-cli.json que estou a muito tempo tentando resolver , peço ajuda de vocês . Estou adicionando assim "styles": [ "src/styles.css", "./node_modules/bootstrap/dist/css/bootstrap.min.css" ],
Esta dando erro : ERROR in multi ./src/src/styles.css ./src/node_modules/bootstrap/dist/css/bootstrap.min.css Module not found: Error: Can't resolve 'C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css' in 'C:\Users\Cris\alurapic\node_modules@angular\cli\models\webpack-configs' resolve 'C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css' in 'C:\Users\Cris\alurapic\node_modules@angular\cli\models\webpack-configs' using description file: C:\Users\Cris\alurapic\node_modules@angular\cli\package.json (relative path: ./models/webpack-configs) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\Cris\alurapic\node_modules@angular\cli\package.json (relative path: ./models/webpack-configs) using description file: C:\Users\Cris\alurapic\package.json (relative path: ./src/node_modules/bootstrap/dist/css/bootstrap.min.css) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css.ts doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css.js doesn't exist as directory C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css doesn't exist [C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css] [C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css.ts] [C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css.js] [C:\Users\Cris\alurapic\src\node_modules\bootstrap\dist\css\bootstrap.min.css] @ multi ./src/src/styles.css ./src/node_modules/bootstrap/dist/css/bootstrap.min.css ERROR in multi ./src/src/styles.css ./src/node_modules/bootstrap/dist/css/bootstrap.min.css Module not found: Error: Can't resolve 'C:\Users\Cris\alurapic\src\src\styles.css' in 'C:\Users\Cris\alurapic\node_modules@angular\cli\models\webpack-configs' resolve 'C:\Users\Cris\alurapic\src\src\styles.css' in 'C:\Users\Cris\alurapic\node_modules@angular\cli\models\webpack-configs' using description file: C:\Users\Cris\alurapic\node_modules@angular\cli\package.json (relative path: ./models/webpack-configs) Field 'browser' doesn't contain a valid alias configuration after using description file: C:\Users\Cris\alurapic\node_modules@angular\cli\package.json (relative path: ./models/webpack-configs) using description file: C:\Users\Cris\alurapic\package.json (relative path: ./src/src/styles.css) no extension Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\src\styles.css doesn't exist .ts Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\src\styles.css.ts doesn't exist .js Field 'browser' doesn't contain a valid alias configuration C:\Users\Cris\alurapic\src\src\styles.css.js doesn't exist as directory C:\Users\Cris\alurapic\src\src\styles.css doesn't exist [C:\Users\Cris\alurapic\src\src\styles.css] [C:\Users\Cris\alurapic\src\src\styles.css.ts] [C:\Users\Cris\alurapic\src\src\styles.css.js] [C:\Users\Cris\alurapic\src\src\styles.css] @ multi ./src/src/styles.css ./src/node_modules/bootstrap/dist/css/bootstrap.min.css
webpack: Failed to compile.