Closed imeckler closed 7 years ago
Same issue - can be fixed by just doing npm i react-native@0.42.0 react@15.4.1
These both really should be deps not peer deps
However this causes a follow up error when trying to run any of the samples:
Bundling `Samples/TourSample/vr/client.js`
Analysing...Error: Unrecognized platform: vr
at DependencyGraph._getRequestPlatform (/Users/uname/git/react-vr/node_modules/react-native/packager/src/node-haste/index.js:334:13)
at load.then (/Users/uname/git/react-vr/node_modules/react-native/packager/src/node-haste/index.js:294:23)
at process._tickCallback (internal/process/next_tick.js:103:7)
(node:39460) UnhandledPromiseRejectionW
Looks like you're getting the previous version of our preview zip and there's a mismatch with our latest npm packages, thanks for reporting, we'll fix this shortly.
This should be fixed, please try downloading the preview zip again.
I am getting the same errors when installing React VR with npm. Here's the package.json
:
{
"name": "GDVR_REACTVR_SITEPOINTDEMO",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node -e \"console.log('open browser at http:/localhost:8081/vr/\\n\\n');\" && node node_modules/react-native/local-cli/cli.js start",
"bundle": "node node_modules/react-vr/scripts/bundle.js",
"open": "node -e \"require('xopen')('http://localhost:8081/vr/')\"",
"postinstall": "node postinstall.js && echo done"
},
"dependencies": {
"ovrui": "~0.1.0",
"ovr-audio": "~0.1.0",
"react": "15.3.2",
"react-native": "0.37.0",
"three": "^0.80.1",
"react-vr": "~0.1.0",
"react-vr-web": "~0.1.0",
"xopen": "1.0.0"
}
}
Try deleting the node_modules and re-install using
"react": "15.4.1",
"react-native": "0.42.0",
Can anyone tell me if I can actually run this on mac? I have been able to get the samples downloaded and the server starts, however not sure which browser or what extra things/settings I need to configure to be able to see the samples.
Using Oculus Rift DK2 on mac. Tried Firefox nightly, chrome canary, chrome, firefox, chromium. Does anybody have a link I could use?
the React VR samples will run on mac in a standard web browser, however support for DK2 on Mac, as well as OS X support for the Oculus Rift, was discontinued in 2015. (see Powering the Rift)
We use GitHub Issues for bugs and support tracking for the preview
--- Please use this template, and delete everything above this line before submitting your issue ---
Description
I downloaded the preview zip,
npm install
, and when I runnpm start
things poop out.Expected behavior
The demo server to run.
Actual behavior
I run
npm install
and getwhich I guess is a bit of a bad sign.
Then when I run
npm start
I getAdditional Information
• Mac 10.12.2 • node 7.7.2 • npm 4.4.1