Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some users report issue using it with react native 0.69 and 0.65 #469

Closed
SergioRZMasson opened this issue Oct 6, 2022 · 2 comments
Closed
Labels
bug Something isn't working
Milestone

Comments

@SergioRZMasson
Copy link
Contributor

Describe the bug
Some consuming the BabylonReactNativeSample project with react native 0.69 are reporting issue "Unexpected token '=' ". This issue seems to happen when one addes the following line to the App.tsx file:

const engine = useEngine();

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/BabylonJS/BabylonReactNativeSample.git
  2. git checkout react-native-0-69
  3. npm install
  4. npm run android

Screenshots

react_native_69_issue

Other

  • Platform: [e.g. Win32, UWP, HoloLens, Android, iOS]

User reported issues

@CedricGuillemet
Copy link
Contributor

I'm taking a look and I may have found something:

error node_modules\@babylonjs\core\Compute\computeShader.js: Unexpected token: operator (=) in file node_modules\@babylonjs\core\Compute\computeShader.js at 69:31. 

@thomlucc
Copy link
Member

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants