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

WINDOWS 10 - Cannot find module './lib/bootstrap.loader!./no-op.js #196

Closed
Ks89 opened this issue Oct 31, 2016 · 7 comments
Closed

WINDOWS 10 - Cannot find module './lib/bootstrap.loader!./no-op.js #196

Ks89 opened this issue Oct 31, 2016 · 7 comments

Comments

@Ks89
Copy link

Ks89 commented Oct 31, 2016

Hi. I'm trying to test one of my projects on Windows and the result is:

error

It's the same error fixed some weeks ago adding

new ProvidePlugin({
(...)
Tooltip: "exports?Tooltip!bootstrap/js/dist/tooltip",
Alert: "exports?Alert!bootstrap/js/dist/alert",
(...)
})

The same project is perfect on macOs and Ubuntu.
On Windows 10, I receive some errors, but the project itself it is still working. It's strange.

I'm using NodeJs 6.9.x on Windows 10 64 bit (NodeJs 7.x.x is not compatible with sass-loader on Windows, at the moment).

To reproduce this issue use this project: https://github.com/Ks89/Angular2-webpack2-skeleton

Thank u,
Ks89

@djnaumov
Copy link

djnaumov commented Nov 1, 2016

I have the same issue. I found info about, what the BS4 team "Strip out UMD & CJS in favor of ES6 modules".

@ericjamesjohnson672
Copy link

Yup.... same thing here. Sheesh.

@Judahmeek
Copy link
Contributor

I don't understand how bootstrap-loader can be trying to resolve script paths with **/umd/** in them. We removed those references a while back. https://github.com/shakacode/bootstrap-loader/blame/master/src/utils/createBootstrapRequire.js#L15

@Ks89
Copy link
Author

Ks89 commented Nov 7, 2016

Damn!
Now I have the same problem with macOS. How is it possible? My bootstrap-loader's version is the same. I executed npm i, ok, but the latest release is still beta12.

Now to build my project I need to remove --display-error-details from the webpack command.

I'm really confused. Is there a problem with bootstrap-loader's versions?

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/alert' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 1:0-42
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/button' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 2:0-43
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/carousel' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 3:0-45
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/collapse' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 4:0-45
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/dropdown' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 5:0-45
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/modal' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 6:0-42
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/popover' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 7:0-44
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/scrollspy' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 8:0-46
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/tab' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 9:0-40
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/tooltip' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 10:0-44
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

ERROR in ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js
Module not found: Error: Can't resolve '../bootstrap/dist/js/umd/util' in '/Users/ks89/git/MyWebsite/app_client/node_modules/bootstrap-loader'
 @ ./~/bootstrap-loader/lib/bootstrap.scripts.loader.js!./~/bootstrap-loader/no-op.js 11:0-41
 @ ./~/bootstrap-loader/lib/bootstrap.loader.js!./~/bootstrap-loader/no-op.js
 @ ./~/bootstrap-loader/loader.js
 @ ./src/vendor.ts
 @ multi vendor

@Judahmeek
Copy link
Contributor

@Ks89, can you confirm that [email protected] is actually the installed module? See #191 (comment)

@Ks89
Copy link
Author

Ks89 commented Nov 8, 2016

@Judahmeek you are right.
I removed the ^ to obtain beta 12.
Thank u.

@Judahmeek
Copy link
Contributor

@Ks89 Glad to help! Feel free to close this issue.

@Ks89 Ks89 closed this as completed Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants