Skip to content

Babel Loaders in webpack #2

Description

@michaelcyng

Hi, I have just followed the instruction in http://www.eloquentwebapp.com/building-a-gallery-using-reactjs-webpack-bootstrap-and-sass/ and I got the following error when I tried to build the bundle.js with webpack:

ERROR in Entry module not found: Error: Can't resolve 'babel' in '/home/tscs-dev/Entwicklungen/web'
BREAKING CHANGE: It's no longer allowed to omit the '-loader' suffix when using loaders.
You need to specify 'babel-loader' instead of 'babel',
see https://webpack.js.org/guides/migrating/#automatic-loader-module-name-extension-removed

In my webpack.config.js, I changed 'babel' to 'babel-loader'. I wonder if you may want to change the webpack config in a similar way too.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions