[Packager] "type":"InternalError","message":"react-packager has encountered an internal error
See original GitHub issueI started getting an InternalError
error opening my React app in the iOS Simulator:
{"type":"InternalError","message":"react-packager has encountered an internal error, please check your terminal error output for details"}
The XCode debug window has the following warning:
2015-09-30 08:25:36.383 [warn][tid:NSOperationQueue 0x7fd84bf81f30 :: NSOperation 0x7fd84bc8bed0 (QOS: LEGACY)][RCTDevMenu.m:211] RCTSourceCode module scriptURL has not been set
And my terminal running npm start
has the error:
Error: failed to parse query: must use ["allof", expr...]
at BunserBuf.<anonymous> (/SandBox/hkiosk_react/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:93:23)
at emitOne (events.js:77:13)
at BunserBuf.emit (events.js:169:7)
at BunserBuf.process (/SandBox/hkiosk_react/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/node_modules/bser/index.js:289:10)
at /SandBox/hkiosk_react/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/node_modules/bser/index.js:244:12
at doNTCallback0 (node.js:407:9)
at process._tickCallback (node.js:336:13)
None of these error messages help identify, where, what or why the problem is happening.
Other reported issues #3022, #2345, #2550 haven’t helped narrow down the issue for me either.
Suggestions of restarting computer, reinstalling watchman, etc have not helped.
Issue Analytics
- State:
- Created 8 years ago
- Comments:24 (4 by maintainers)
I have this problem too, any solutions? I tried all above and it didn’t work. The solution was to restart my osx. I don’t know why it works now, but it’s all good. 😃
Here are some steps you can take to try to get things in a good state:
watchman watch-del-all
or a more forceful option:pkill watchman
.$TMPDIR/react-packager-cache-*
. and restart.