Facing Issues in integrating Bootstrap with angular 2 cli. I am new to angular 2 CLI please guide me and correct me if I am doing my steps wrong. Thanks in advance.
Steps followed:
1. npm install bootstrap@next --save
2. modified .angular-cli.json file
This is what I modified:
"styles": [
"../node_modules/bootstrap/dist/css/bootstrap.css",
"styles.scss"
],
"scripts": [
"../node_modules/jquery/dist/jquery.js",
"../node_modules/tether/dist/tether.js",
"../node_modules/bootstrap/dist/js/bootstrap.js"
],
restarted the app with ng serve
Errors occured as follows:
ERROR in multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/tether/dist/tether.js script-loader!./~/bootstrap/dist/js/bootstrap.js Module not found: Error: Can't resolve '/Users/sagarbhanushali/projectangularcliyoutube/myProject/node_modules/tether/dist/tether.js' in '/Users/sagarbhanushali/projectangularcliyoutube/myProject/node_modules/@angular/cli/models/webpack-configs' @ multi script-loader!./~/jquery/dist/jquery.js script-loader!./~/tether/dist/tether.js script-loader!./~/bootstrap/dist/js/bootstrap.js
I am new to angular 2 CLI please guide me and correct me if I am doing my steps wrong. Thanks in advance.