Closed Maamun closed 6 years ago
That was my fault, the problem is this regex: /\.jsx?/
, like this i'm telling webpack to use babel-loader with any file extension starting with .js
or .jsx
and .json
match the test.
To fix this i had to replace ? with $, so the solution is :
rules: [
{
test: /\.jsx$/,
loader: 'babel-loader'
}
]
Trying to follow along with the Loading JSON Data video but i kept getting this error :
at first i thought that it was an eslint issue but it seems that it happens on the build step, i tried adding a json-loader to webpack but i get the same error, this is a caption of the error i get in the terminal
Any suggestions?