Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Error: Cannot resolve module 'bootstrap' #20414

Closed
wzup opened this issue Jul 30, 2016 · 3 comments
Closed

Module not found: Error: Cannot resolve module 'bootstrap' #20414

wzup opened this issue Jul 30, 2016 · 3 comments
Labels

Comments

@wzup
Copy link

wzup commented Jul 30, 2016

http://v4-alpha.getbootstrap.com/getting-started/download/#npm:

require('bootstrap') will load all of Bootstrap’s jQuery plugins onto the jQuery object.

File:

const bs = require('bootstrap');

Doesn't require. Error thrown:

ERROR in . / assets / js / index.js
Module not found: Error: Cannot resolve module 'bootstrap' in C: \Users\ user\ sbox\ node\ app\ assets\ js
resolve module bootstrap in C: \Users\ user\ sbox\ node\ app\ assets\ js
looking for modules in C: \Users\ user\ node_modules
C: \Users\ user\ node_modules\ bootstrap doesn 't exist (module as directory)
resolve 'file'
bootstrap in C: \Users\ user\ node_modules
resolve file
C: \Users\ user\ node_modules\ bootstrap doesn 't exist
C: \Users\ user\ node_modules\ bootstrap.js doesn 't exist
C: \Users\ user\ node_modules\ bootstrap.jsx doesn 't exist
C: \Users\ user\ node_modules\ bootstrap.react doesn 't exist

@rafalp
Copy link

rafalp commented Jul 30, 2016

Could you please confirm if this is same issue as one below?
#20385

@mdo
Copy link
Member

mdo commented Jul 30, 2016

If this is the same as #20385, #20418 should fix it.

@cvrebert cvrebert changed the title [#v4-dev] Module not found: Error: Cannot resolve module 'bootstrap' Module not found: Error: Cannot resolve module 'bootstrap' Jul 30, 2016
@cvrebert
Copy link
Collaborator

Duplicate of #20383 or #20385.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants