Skip to content

Webpack 2/bootstrap 4 beta build fails on missing plugin #23620

@peterdutton

Description

@peterdutton

Hi,

I had an issue with building Bootstrap with Webpack where, after following the Getting Started guide, I was seeing the following error:

ERROR in ./node_modules/bootstrap/dist/js/bootstrap.js Module build failed: ReferenceError: Unknown plugin "transform-es2015-modules-strip" specified in "/home/laptop/webpack-test/node_modules/bootstrap/.babelrc" at 0, attempted to resolve relative to "/home/laptop/webpack-test/node_modules/bootstrap"

However this package does seem to be specified as a dev dependency in the Bootstrap package.json.

To resolve it I had to manually install the plugin in my project, e.g:

npm install babel-plugin-transform-es2015-modules-strip --save-dev

Hopefully this will save others some time, or someone more proficient with npm than me will be able to see what the issue is.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions