You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file."

You are using unnecessary escape character: which is not required.

Replace test: '/\.(js|jsx)$/', with test: /\.js$|jsx/, it should work fine.

I replicated your issue in my machine and found the same which is resolved by the above fix.

hope this helps, happy coding!!!


The selected answer missing some details:

It should be test: '/\.(js|jsx)$/', replaced with test: /\.js|\.jsx$/

\: is an escape character in this case for .

|: is an Alternation / OR operand

$: is end of line

Hopefully this is useful for you.

Source: https://www.rexegg.com/regex-quickstart.html

Tags:

Css

Reactjs