Babel-loader: Module build failed (from ./node_modules/babel-loader/lib/index.js)

Created on 1 Oct 2018  路  3Comments  路  Source: babel/babel-loader

win10

dependencies:
"@babel/runtime": "^7.1.2",
"react": "^16.5.2",
"react-dom": "^16.5.2"

devDependencies:
"@babel/core": "^7.1.2",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.4",

webpack.config.js
image

.babelrc
image

Error Image:
image

Most helpful comment

@bibiehy i got same error now. what you did to resolved it.

All 3 comments

@bibiehy i got same error now. what you did to resolved it.

anyone managed to fix this issue ?

This error implies that there are random unexpected characters in the config file content. If you're getting this, I recommend deleting the content on the line with the error and retyping it from scratch. Most likely, you've copy-pasted the config from somewhere that inserted a weird character.

Was this page helpful?
0 / 5 - 0 ratings