Adding "bootstrap" fails to find files.
See original GitHub issue- Created a new project using
au new
namedcli-test
- Used options: 2 (typescript), 1 (create), 1 (get dependencies)
- Changed Directory to the new
cli-test
folder. - Ran
npm install bootstrap --save
It gave the following error:
UNMET PEER DEPENDENCY Typescript@1.9.0-dev.20160627-1.0
This seemed odd to me as I assumed that theau new
would have gotten the correct typescript stuff… (Package .json seems to want typescript 1.9 or greater but only in dev dependencies.) - Opened Aurelia.json and added
"bootstrap",
to bundles->vender-bundle->dependencies. - Ran
au run
.
Result: I got the following errors:
Tracing aurelia-dependency-injection...
Tracing bootstrap...
{ uid: 9,
name: 'writeBundles',
branch: false,
error:
{ [Error: ENOENT: no such file or directory, open 'C:\src\spikes\js\transition.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\src\\spikes\\js\\transition.js',
moduleTree: [ 'bootstrap' ],
fileName: 'C:/src/spikes/AureliaCli2/cli-test/node_modules/bootstrap/dist/js/npm.js' },
duration: [ 0, 175460446 ],
time: 1467758106903 }
{ uid: 1,
name: '<series>',
branch: true,
error:
{ [Error: ENOENT: no such file or directory, open 'C:\src\spikes\js\transition.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\src\\spikes\\js\\transition.js',
moduleTree: [ 'bootstrap' ],
fileName: 'C:/src/spikes/AureliaCli2/cli-test/node_modules/bootstrap/dist/js/npm.js' },
duration: [ 1, 908511472 ],
time: 1467758106917 }
{ uid: 0,
name: '<series>',
branch: true,
error:
{ [Error: ENOENT: no such file or directory, open 'C:\src\spikes\js\transition.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\src\\spikes\\js\\transition.js',
moduleTree: [ 'bootstrap' ],
fileName: 'C:/src/spikes/AureliaCli2/cli-test/node_modules/bootstrap/dist/js/npm.js' },
duration: [ 1, 927638957 ],
time: 1467758106935 }
{ [Error: ENOENT: no such file or directory, open 'C:\src\spikes\js\transition.js']
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\src\\spikes\\js\\transition.js',
moduleTree: [ 'bootstrap' ],
fileName: 'C:/src/spikes/AureliaCli2/cli-test/node_modules/bootstrap/dist/js/npm.js' }
These steps seem to be what is asked for in the “Adding Client Libraries to Your Project” section of the readme.md.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Failing to @import bootstrap.css. Unable to open "bootstrap ...
I've downloaded bootstrap Compiled CSS and JS, and I want to @import it into my customized scss file so then I can @extend...
Read more >Introduction · Bootstrap v5.1
Looking to quickly add Bootstrap to your project? Use jsDelivr, a free open source CDN. Using a package manager or need to download...
Read more >Resolve the "bootstrap action returned a non-zero return code ...
I created a custom bootstrap action for my Amazon EMR cluster. The cluster fails to launch, and the bootstrap action returns an error...
Read more >Error: File to import not found or unreadable: bootstrap - Drupal
THe compilation file expects to find Bootstrap under /themes/contrib/bootstrap and the subtheme on /themes/custom/subtheme. Apart from that it ...
Read more >10 Most Common Bootstrap Mistakes That Developers Make
It comes bundled with basic HTML and CSS design templates that include many common UI ... Bootstrap will not do everything for you,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
A cool tip for anyone who is using Sass in their CLI apps. If you install
bootstrap-sass
you can import the Sass stylesheet from thenode_modules/bootstrap-sass
plugin and it’ll bundle in the Bootstrap CSS for you without needing to use the bundle stuff.@Vheissu could you provide an example? I’m not sure should I import it in html view or in main sass file? Or maybe now there is a better way to import bootstrap-sass or any other library with sass dependencies @EisenbergEffect