-
Notifications
You must be signed in to change notification settings - Fork 13
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
Error setting up sample project from scratch #9
Comments
Hi @kbhokray, sorry for the late reply. I'm not been able to repro this... Can you share a little more information about your development environment? Which OS are you using? |
Hi @SergioRZMasson I'm running it on Ubuntu 18.04. Can you please try the below steps for repro?
More details:
|
Thanks @kbhokray ! I will try to repro those steps on Ubuntu 18.04. |
Any update please? I have the same issue on Ubuntu 22.04.1 |
@thangld322 , I haven't had a chance to try it yet, I will get to it as soon as possible. One thing you might try is using react native 0.69. We have a branch on this repo called react-natiive-0-69, can you try using it as seen if you continue getting the issue? |
@thangld322 Can you please tell the npm and node version you're using? When I try to run the 0.69 branch, it breaks with the below error even with Pixel4 API 30 Emulator
|
NPM: 8.11.0
|
Just tried branch with 0.69 rn - works on Android for me. No additional config has been required to run app. npm: 8.1.2
|
It still gives an error for me with the below versions
And the below package.json
Although this time the error seems to be different as per the logs below
I verified that Open GL ES3 is being used as suggested in this previous issue, but even that didn't help. For now I am able to run 0-64 version am using that. I'll update to 0.69 whenever I'm able to work around this bug |
Can you share which version of Android Studio you are using? |
|
I decided to give it one more try with the emulator suggested in the docs (Pixel 2 with API 27, tested with both x86 and x86_64 just to be sure), did
package.json
|
Yep, I believe this might be a tricker error to solve, and it might not be related to the sample itself but to Babylon React Native. I've opened an issue on BabylonReactNative repo we will need to do some deeper investigation on this. |
@kbhokray , this seems to be an issue with latest versions of babylonjs/core package that might have invalid characters for react native on windows. Can you try changing you dependencies in package.json from: "@babylonjs/core": "^5.20.0", to "@babylonjs/core": "5.17.0", To force them to be at version 5.17, I believe this version does not have the invalid characters. We are working on possibly fixing this on babylonjs as well. |
@SergioRZMasson It works! Thanks a lot for following up. I'm putting my working config below for anyone facing the issue in the future package.json
|
The library crashes on start with the below error when setup from scratch with
react-native@0.65.2
and@babylonjs/react-native-iosandroid-0-65
on Android. I have checked on emulators Pixel 2 API 29 and Pixel XL API 31. Cloning this repo and running it works without a problem. But when I removepackage-lock.json
and run, it starts breaking againError:
Android error stack:
To Reproduce
Follow the setup steps in the sample repo
Alternatively, following the below steps also gives the same error
Repo with the error-ing
package-lock.json
for reference:Expected behavior
The application should run without an error
Screenshots
Other
Since it looks like it's a babel error, I also tried adding the below in
babel.config.js
as mentioned in babel's repo. Even that doesn't seem to workThe text was updated successfully, but these errors were encountered: