error occuring when i try to create a new react app(problems with babel

So I've been trying to create a new react app using npm(yarn too) and every time I' got this error

FAILED TO COMPILE


./src/index.js
Error: [BABEL] C:\Users\USERNAME\Desktop\test\src\index.js: Cannot find module 'C:\Users\USERNAME\Desktop\test\node_modules\@babel\plugin-transform-typescript\node_modules\@babel\helper-plugin-utils\lib\index.js'. Please verify that the package.json has a valid "main" entry (While processing: "C:\\Users\\USERNAME\\Desktop\\test\\node_modules\\babel-preset-react-app\\index.js")

I did't change anything, just runned npm(or yarn) start straight after npm create-react-app APP_NAME

Also my package.json isn't actually different from package.json in my working projects

Please help


Ответы (0 шт):