ReferenceError: Unknown plugin "transform-es2015-modules-strip [FIX]
See original GitHub issueHello,
I understand that you are a large team, but I do not have time to write a detailed report:
In bootstrap beta 4 there is an error, I found the problem and fixed it in my code.
You can see here: https://stackoverflow.com/questions/45660672/webpack-fails-to-load-bootstrap-v4-0-0-beta/45872157#45872157
Error:
ERROR in ./node_modules/bootstrap/dist/js/bootstrap.min.js
Module build failed: ReferenceError: Unknown plugin "transform-es2015-modules-strip" specified in "/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/bootstrap/.babelrc" at 0, attempted to resolve relative to "/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/bootstrap"
at /Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
at Array.map (<anonymous>)
at Function.normalisePlugins (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
at OptionManager.mergeOptions (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
at OptionManager.init (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-loader/lib/index.js:50:20)
at Object.module.exports (/Applications/MAMP/htdocs/1.7/singlewave/themes/singlewave/_dev/node_modules/babel-loader/lib/index.js:175:20)
@ ./js/theme.js 5:0-42
@ multi webpack/hot/dev-server webpack-hot-middleware/client ./js/theme.js
npm install babel-plugin-transform-es2015-modules-strip
And them install:
babel-preset-es2015
babel-preset-stage-2
I hope you will be wise and add this fix.
With respect, Alexander.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Webpack fails to load bootstrap v4.0.0-beta - Stack Overflow
After several tests this is my conclusion for running bootstrap v4.0.0-beta with Webpack so you will need to manually install jquery and ...
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

@Prestapro is it possible for you to remove the
.babelrcinnode_modules/bootstrap/and give it a new try please ?.babelrc should not be present on the bootstrap package. When building your project with babel, it will lookup by default on all babelrc. See lookup behavior https://babeljs.io/docs/usage/babelrc/ When building a npm package (eg: bootstrap) you should ignore everything but /dist files. Also until they fix it we could still use “babelrc”: false, but it does not seems to work for all of my projects.
edit: it’s fixed sorry (my bad)