Since last update (0.7.0).
When running "run on Android device", the packager starts but fails to run the app. Tested with 2 different applications.
Already tried:
npm cache clean --force
rm -rf node_modules && npm install
Works fine when running in the terminal 'react-native run-android' (but I can't use the debugger...)
React Native output:
error: bundling failed: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at FileStore.get (c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\stores\FileStore.js:34:21)
at c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\Cache.js:76:40
at Generator.next (<anonymous>)
at step (c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\Cache.js:18:30)
at c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\Cache.js:37:14
at new Promise (<anonymous>)
at c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\Cache.js:15:12
at Cache.get (c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro-cache\src\Cache.js:102:7)
at c:\Proj\15985_PORTALP_RS_user_app\portalp-user-react-native\node_modules\metro\src\DeltaBundler\Transformer.js:166:34
DELTA [android, dev] ./index.js 鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒鈻戔枒 0.0% (0/1), failed.
Device red screen output (see attachment):
The development server returned response error code: 500.
Metro Bundler has encountered an internal error, please check your terminal error output for more details.

.
Hi @AlexandreLouisnard and thanks for reaching us.
This is more likely a metro cache problem, please try to run rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro* && rm -rf $TMPDIR/haste-* in addition to commands you already ran.
Hello,
Indeed. As it happened right after the update and it was still working when starting the server from outside vscode I thought it was linked.
Thanks for your answer and sorry for bothering.
Regards
windows delete 'C:\Users\admin\AppData\Local\Temp\metro-cache'
Most helpful comment
Hi @AlexandreLouisnard and thanks for reaching us.
This is more likely a metro cache problem, please try to run
rm -rf $TMPDIR/react-* && rm -rf $TMPDIR/metro* && rm -rf $TMPDIR/haste-*in addition to commands you already ran.