Description
If I install any package and import it, the packager stops with this Exception all the time.
There are some tips for what should I do, but it isn't working. Every time, I get this error, I trying all of the commands (below on screenshot) and react-native-git-upgrade
, npm cache clean --force
, npm cache verify
, yarn cache clean
in various order but it's a magic how it works... It's get resolved by one of these commands or all of them, or the order matters or who knows. The error magically disappears about 1-2 HOURS of trying.
It's really annoying that neither me or my team can not work when this error appears and as I search for it, I saw that this issue isn't resolved and it was an issue in 2015 too.
Many developers have tried a lot of possible solutions, but nobody can not solve it and it isn't depend on npm, node, react, react native, or any tool/package version.
Environment
react-native -v
:react-native-cli: 2.0.1 react-native: 0.43.2
node -v
:v8.1.3
npm -v
:5.2.0
yarn --version
(if you use Yarn):0.27.5
-
Target Platform: iOS & Android
-
Development Operating System: macOS Sierra 10.12.5
-
Build tools: Doesn't matter. With cli, xcode, and android studio.
Steps to Reproduce
react-native init AppName
npm install any-dependency
react-native run-ios || run-android
Expected Behavior
Just compile, build and run my app.