Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

react 360 is not working in windows whlie using node.12.14.1 and react16.3.1 #802

Open
tejamernstack opened this issue Jun 11, 2020 · 4 comments

Comments

@tejamernstack
Copy link

[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

@tejamernstack tejamernstack changed the title react 360 is not in windows whlie using node.12.14.1 and react16.3.1 react 360 is not working in windows whlie using node.12.14.1 and react16.3.1 Jun 11, 2020
@navalex
Copy link

navalex commented Jul 10, 2020

Same issue here, how to solve it ?

@godismygirl
Copy link

me too

@shakeeltariq
Copy link

shakeeltariq commented Oct 28, 2020

Faced the same issue, found this old relevant thread expo/expo-cli#1074 (comment)

.. and fixed by adding \ on line # 16 in node_modules\metro\src\blacklist.js:

/node_modules[\/\\]react[\/\\]dist[\/\\].*/,

hope that helps.

@muthu98
Copy link

muthu98 commented Nov 3, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants