As you all guys know, React Native recently upgraded to version 0.71.0.
I started new project using CLI, but whenever I try to add new components or screens, I get a syntax error with the message "none of these file exists".
When I restart the app it’s all okay until I need new component or screen. I have no clue why this behaviour exists in 0.71.0 since I did not experience this issue in other versions. Maybe I missed something new. It is so annoying that I need to type yarn start
every time I add new components.
I actually did not try anything to solve this problem because I have no idea where to look.
2
Answers
I think I have found the solution. There is a note in react native blog post saying that after upgrading to React Native 0.71, we recommend removing @types/react-native from your package.json devDependencies. That solved my problem.
just install this package.