Hello,
I am currently working on a native app in which I want to integrate Babylon. I want to deploy the app on iOS, Android & Web, which is why I am using Expo.
Unfortunately, I am getting different errors on my machine and on Expo Snack.
Do you have any instructions to make it work?
Error on Expo Snack - babylon native - Snack
Unable to resolve module '@babylonjs/abstractScene.js'
Evaluating @babylonjs/abstractScene.js
Evaluating @babylonjs/core.js
Evaluating @babylonjs/react-native.js
Evaluating App.js
Loading App.js
Error on my machine
./node_modules/@babylonjs/react-native/EngineView.js 14:28
Module parse failed: Unexpected token (14:28)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| const initialized = useModuleInitializer();
| const engine = useMemo(() => {
> return props.camera?.getScene().getEngine();
| }, [props.camera]);
| const renderLoop = useCallback(() => {
./node_modules/@babylonjs/react-native/EngineHook.js 17:9
Module parse failed: Unexpected token (17:9)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| })(DOMError || (DOMError = {}));
| class DOMException {
> error;
| constructor(error) {
| this.error = error;
./node_modules/@babylonjs/react-native/NativeCapture.js 3:17
Module parse failed: Unexpected token (3:17)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| ;
| export class CaptureSession {
> nativeCapture;
| constructor(camera, onCaptureCallback) {
| console.warn(`CaptureSession is experimental and likely to change significantly.`);
./node_modules/@babylonjs/react-native/FontFace.js 6:10
Module parse failed: Unexpected token (6:10)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| */
| export class FontFace {
> family;
| source;
| _status = "unloaded";
Best