brianzinn / react-babylonjs

React for Babylon 3D engine
https://brianzinn.github.io/react-babylonjs/
829 stars 105 forks source link

[ERROR] Could not resolve "@babylonjs/core/Cameras/VR/webVRCamera.js" deprecated #299

Closed saidmoya12 closed 1 year ago

saidmoya12 commented 1 year ago

webVRCamera has been deprecated https://doc.babylonjs.com/features/featuresDeepDive/cameras/webVRCamera

So to upgrade @babylonjs/core throw the following error

- [ERROR] Could not resolve "@babylonjs/core/Cameras/VR/webVRCamera.js"
 node_modules/react-babylonjs/dist/react-babylonjs.js:1:4026:
      1 │ ... ne}from"@babylonjs/core/Cameras/VR/webVRCamera.js"

Please upgrade to webxr camera https://doc.babylonjs.com/features/featuresDeepDive/webXR/webXRCamera

Thanks!

brianzinn commented 1 year ago

thanks @saidmoya12 - i'll build a new version. need to remove 1 demo - it's been legacy for quite a while. sorry i had missed this issue opening.

brianzinn commented 1 year ago

sorry. didn't mean to close. having some trouble deploying new version - will try to sort it out tomorrow. cheers.

brianzinn commented 1 year ago

Should be fixed on latest version. I tested on codesandbox. Thanks for reporting.