question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding "bootstrap" fails to find files.

See original GitHub issue
  1. Created a new project using au new named cli-test
  2. Used options: 2 (typescript), 1 (create), 1 (get dependencies)
  3. Changed Directory to the new cli-test folder.
  4. 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 the au new would have gotten the correct typescript stuff… (Package .json seems to want typescript 1.9 or greater but only in dev dependencies.)
  5. Opened Aurelia.json and added "bootstrap", to bundles->vender-bundle->dependencies.
  6. 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:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Vheissucommented, Jul 12, 2016

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 the node_modules/bootstrap-sass plugin and it’ll bundle in the Bootstrap CSS for you without needing to use the bundle stuff.

0reactions
kamilglodcommented, Dec 10, 2016

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found