A
A
Alexander2018-11-13 15:34:52
React
Alexander, 2018-11-13 15:34:52

Cannot find module '../data/built-ins.json'?

10 minutes ago everything worked as it should. I write the code and then bam, an error:

Error: [BABEL] C:\MegaFiles\WebDeweloper2\react_practic\react_practic\src\containers\QuizCreator\QuizCreator.js: Cannot find module '../data/built-ins.json' (While processing: "C:\\MegaFiles\\WebDeweloper2\\react_practic\\react_pra
ctic\\node_modules\\babel-preset-react-app\\index.js")

Maybe something with webstorm? This morning I couldn't find the same thing in the node_model folder.
Everything is in order with the code, it is the simplest. It gives such an error even on the return of a regular h1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-11-13
@AleksandrB

The problem was really in webstorm. Today he did not like the way I behave, apparently, and he decided to put a problem on me. It seems to remove files from node_modules. Deleting the folder and installing node again solves the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question