W
W
WizardW2019-07-26 10:40:08
Express.js
WizardW, 2019-07-26 10:40:08

Why does webpack complain about React component imports?

My webpack swears at import App from "./src/App", where App is a jsx file.
5d3aae3fcb74d585170167.jpeg
I'm trying to make SSR, I import this component in the server file

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2019-07-26
@WizardW

Replace: with:
test: /\.jsx?$/,

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question