webpack error – Module build failed: Error: Parse Error without filename

I running webpack, if I misspelled or had any other type of syntax error in my javascript files, I was continually seeing an error like the following


ModuleBuildError: Module build failed: Error: Parse Error:

To make this worse, it only showed me the line number but not the file.

After checking this issue, I decided to switch to using babel-loader instead of jsx loader.

My webpack config now has the following loader configuration


loaders: [ { jsx: /.js$/, exclude: /node_modules/, loader: 'babel-loader' } ]

Ryan Sukale

Ryan is just a regular guy next door trying to manage his life and finances.

You may also like...