Skip to content

Bug in bootstrap v4, alpha 3: cannot find 'bootstrap' in node_modules #112

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

Closed
philipchmalts opened this issue Jul 27, 2016 · 15 comments
Closed
Labels

Comments

@philipchmalts
Copy link

Hey,

Not sure if this is something I am doing wrong, but I have been using this loader for months now and noticed that with the latest patch, my bootstrap folder cannot be resolved anymore. I am using bootstrap 4 alpha 2 but now it doesn't seem to be resolving the folder. When I run debug it goes to

[bootstrap-loader]: Using Bootstrap module: bootstrap. 

and then throws this error:

./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
[0] Module build failed: Error: 
[0]       Could not find path to 'bootstrap' module.
[0]       Make sure it's installed in your 'node_modules/' directory.
[0]     
[0]     at Object.module.exports.pitch (/Users/philipchmalts/Documents/Development/if-planning/node_modules/bootstrap-loader/lib/bootstrap.loader.js:90:11)
[0]  @ ./~/bootstrap-loader/loader.js 1:0-44

Any help would be much appreciated!

Phil

@sonyan
Copy link

sonyan commented Jul 27, 2016

I have the same problem after upgrading

@philipchmalts
Copy link
Author

philipchmalts commented Jul 27, 2016

Missed that we had ^4.0.0-alpha.2 and it automatically updated to 3 which came out about 5 hours ago. That being said, this project doesn't work with v3 because it seems bootstrap is missing the /dist/js/npm folder entirely. So roll back to alpha 2 for now until they get that figured out.

twbs/bootstrap#20383

@netskape
Copy link

I'm waiting for update

@lanocturne
Copy link

Need to support alpha 3

@crunchtime-ali
Copy link

Had the same problem.
@philipchmalts Can you change the title to "Cannot find bootstrap module for Bootstrap 4 alpha 3" or something alike?

@justin808
Copy link
Member

I'm seeing the issue and trying to fix this one.

@justin808
Copy link
Member

twbs/bootstrap#20383

Coming out in alpha v4!

@justin808 justin808 changed the title Upgraded to latest 1.0.10 , now cannot find 'bootstrap' in node_modules Bug in bootstrap v4: Upgraded to latest 1.0.10 , now cannot find 'bootstrap' in node_modules Jul 31, 2016
@jerexyz
Copy link

jerexyz commented Aug 2, 2016

I have the same problem,Waiting too!!!

@justin808 justin808 changed the title Bug in bootstrap v4: Upgraded to latest 1.0.10 , now cannot find 'bootstrap' in node_modules Bug in bootstrap v4, alpha 3: cannot find 'bootstrap' in node_modules Aug 3, 2016
@davecarlson
Copy link

yup, looks like it's been fixed - mdo says it'll be in the alpha-3 patch (expected in the next week )

@sky-coding
Copy link

Our app is fubar'd in IE on alpha-2 due to twbs/bootstrap#17310, need support for alpha-3, anxiously awaiting this fix!

@borysn
Copy link

borysn commented Aug 17, 2016

Downgrading to bootstrap alpha 2 does not resolve the issue for me, I still get a module not found. repo for reference

@justin808
Copy link
Member

@borysn Make sure you are not using npm link. You might want to specify the location of your .bootstraprc file.

@borysn
Copy link

borysn commented Aug 17, 2016

@justin808 thanks for the reply. npm link is not being used, at least I don't think so? I didn't set that up anywhere. My .bootstraprc file is picked up fine. Here's a debug trace...

 12% building modules 23/114 modules 91 active ...ode_modules/bootstrap-loader/no-op.js[bootstrap-loader]:  bootstrap-loader is using config file at 
/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/.bootstraprc 

[bootstrap-loader]:  Hey, we're in DEBUG mode because you have 
      your config log level set to 'debug'. 

[bootstrap-loader]:  Query from webpack config: *none* 

[bootstrap-loader]:  Using Bootstrap module: bootstrap 

[bootstrap-loader]:  resolveModule error is  Error: Cannot find module 'bootstrap' from '/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/bootstrap-loader/lib/utils'
    at Function.module.exports [as sync] (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/resolve/lib/sync.js:33:11)
    at exports.default (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/bootstrap-loader/lib/utils/resolveModule.js:10:23)
    at Object.module.exports.pitch (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/bootstrap-loader/lib/bootstrap.loader.js:111:54)
    at LOADER_EXECUTION (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/LoaderRunner.js:95:14)
    at runSyncOrAsync (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/LoaderRunner.js:96:4)
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/LoaderRunner.js:146:3
    at loadLoader (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/loadLoader.js:36:3)
    at iteratePitchingLoaders (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/LoaderRunner.js:140:2)
    at runLoaders (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/loader-runner/lib/LoaderRunner.js:326:2)
    at NormalModule.doBuild (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModule.js:125:2)
    at NormalModule.build (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModule.js:173:15)
    at Compilation.buildModule (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/Compilation.js:127:9)
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/Compilation.js:303:10
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModuleFactory.js:63:13
    at NormalModuleFactory.applyPluginsAsyncWaterfall (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/tapable/lib/Tapable.js:123:70)
    at onDoneResolving (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModuleFactory.js:38:11)
    at onDoneResolving (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModuleFactory.js:135:6)
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModuleFactory.js:130:7
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:726:13
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:52:16
    at async.forEachOf.async.eachOf (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:236:30)
    at _parallel (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:717:9)
    at Object.async.parallel (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:731:9)
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/webpack/lib/NormalModuleFactory.js:123:12
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:726:13
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:52:16
    at done (/home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:246:17)
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:44:16
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:723:17
    at /home/p3pt/dev/java/projects/spring-boot-angular2/master/sba2-wip/frontend/node_modules/async/lib/async.js:167:37 

[bootstrap-loader]:  Bootstrap module location (abs): false 

@justin808
Copy link
Member

@borysn Any luck? Be sure that you specify an exact reference for the version of bootstrap. Don't use the ^ symbol.

@borysn
Copy link

borysn commented Sep 1, 2016

@justin808 i got it going, answered in another thread. Thank you for the reply though (:

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

10 participants