P
P
PlasterTom2018-07-14 13:34:20
React
PlasterTom, 2018-07-14 13:34:20

Module not found: Error: Can't resolve './Table'?

Good afternoon, I was setting up webpack using this tutorial
. And I encountered the following error . I 5b49d0dfbc7d4544705213.jpeg
rechecked the code, I could not find the error. I cloned the lesson code from the git, ran it on my computer, but the same error occurs when I try to connect the component to App.js via import. The path to the component is 200% correct. What could be the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexKindGeek, 2018-07-14
@PlasterTom

Because webpack is configured to read .js files and you have jsx.
Write in the webpack config:
test: /\.(js|jsx)$/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question