[email protected] start C:\Users\user\Desktop\motorla\hello-vr
node node_modules/react-360/scripts/packager.js
open browser at http://localhost:8081/index.html
Starting React Native Packager...
Invalid regular expression: /(node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\__tests__\.)$/: Unterminated character class
An error occurred during the packager process. Exited with code 1.
Look at the packager output above to see what went wrong.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node node_modules/react-360/scripts/packager.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2020-06-11T11_51_38_550Z-debug.log
Same issue here, how to solve it ?
me too
Faced the same issue, found this old relevant thread https://github.com/expo/expo-cli/issues/1074#issuecomment-546167583
.. and fixed by adding \ on line # 16 in node_modules\metro\src\blacklist.js:
/node_modules[\/\\]react[\/\\]dist[\/\\].*/,
hope that helps.
project node_modules/metro/src/blacklist.js
Find the part where it says..
var sharedBlacklist = [ ... ];
and replace that regular expression:
var sharedBlacklist = [
/node_modules[\/\]react[\/\]dist[\/\]./,
/website\/node_modules\/./,
/heapCapture\/bundle.js/,
/.\/__tests__\/./
];
run npm start
goto localhost:8081/index.html
Most helpful comment
Same issue here, how to solve it ?