Babel: require.extensions is not supported by webpack. Use a loader instead.

Created on 11 Aug 2017  路  3Comments  路  Source: babel/babel

Hi all,

I got a WARNING when build with webpack on some babel components

WARNING in ./~/babel-register/lib/node.js
6:19:51 AM watch.1 |  require.extensions is not supported by webpack. Use a loader instead.
6:19:51 AM watch.1 |   @ ./~/babel-core/register.js 3:17-42
6:19:51 AM watch.1 |   @ ./src/index.js

Do you have any solution to fix it?

outdated

All 3 comments

Hey @Tin-Nguyen! We really appreciate you taking the time to report an issue. The collaborators
on this project attempt to help as many people as possible, but we're a limited number of volunteers,
so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack
community that typically always has someone willing to help. You can sign-up here
for an invite.

Hi all,

It's my mistake, I still keep require('babel-core/register') in my code. After removed it, the build works well without any warnings.

Hope this can help others out soon.

馃憤

Was this page helpful?
0 / 5 - 0 ratings