Answer the question
In order to leave comments, you need to log in
Why does webpack-cli throw an error about loader?
Hello.
I am learning React. According to the lessons on the network, I'm trying to build workflow on webpack without create-react-app.
But, I get an error although I do everything according to the lessons. I may be wrong somewhere. webpack-cli throws this error:
ERROR in ./src/index.js 8:3
Module parse failed: Unexpected token (8:3)
You may need an appropriate loader to handle this file type.
| render() {
| return (
> <div>
| Hello, World!
| </div>
@ multi (webpack)-dev-server/client?http://localhost:8080 (webpack)/hot/dev-server.js ./src main[2]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question