React-360: react 360 is not working in windows whlie using node.12.14.1 and react16.3.1

Created on 11 Jun 2020  路  4Comments  路  Source: facebookarchive/react-360

[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

Most helpful comment

Same issue here, how to solve it ?

All 4 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lazerwalker picture lazerwalker  路  3Comments

tlakomy picture tlakomy  路  3Comments

nikgraf picture nikgraf  路  3Comments

baloo887 picture baloo887  路  3Comments

copypasteearth picture copypasteearth  路  3Comments