Repository navigation
ReferenceError: Unknown plugin "transform-es2015-modules-strip [FIX] #23662
Copy link
Copy link
Closed
Labels
jsJavaScript or TypeScript sources and pluginsJavaScript or TypeScript sources and pluginsv4v4, the frozen docs on gh-pagesv4, the frozen docs on gh-pages
Description
Hello,
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
jsJavaScript or TypeScript sources and pluginsJavaScript or TypeScript sources and pluginsv4v4, the frozen docs on gh-pagesv4, the frozen docs on gh-pages
Activity
Johann-S commentedon Aug 25, 2017
Sorry but it's not an issue in our end because it seems you're trying to build Bootstrap instead of just using our dist files.
Excluding the
node_modulesfrom your Babel configuration should do the jobPrestapro commentedon Aug 28, 2017
Hello,
Johann-S
Webpack config:
When I'm excluding folder
node_modulesI get this error:iSkore commentedon Sep 20, 2017
+1
hliberato commentedon Sep 26, 2017
+1
Johann-S commentedon Sep 26, 2017
@Prestapro is it possible for you to remove the
.babelrcinnode_modules/bootstrap/and give it a new try please ?darrensapalo commentedon Sep 30, 2017
@Johann-S Deleting the
.babelrcfile fixed it for me. Thank you.Johann-S commentedon Sep 30, 2017
That's because you shouldn't try to build Bootstrap on your own project use :
ignore: 'node_modules/**'bokorir commentedon Oct 3, 2017
Updating node to the latest version helped me.
mbret commentedon Feb 2, 2018
.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)