Thanks Cedric, I turned off the web debugger and the debug error disappeared.
The engine was still not loaded; NativeModules turned out to be empty, no BabylonNative.
I turned off hermes, cleaned, deleted node_modules, upgraded all node modules, retargeted the solution to avoid Windows SDK errors, recompiled a few times, reset the metro cache,
but now I’m stuck with the following repeating error.
Might have something to do with Metro bundling; I’ll try again tomorrow.
Error: ENOENT: no such file or directory, open ‘C:\Users\frank\repos\babylonwin\code’
at Object.openSync (node:fs:585:3)
at Object.readFileSync (node:fs:453:35)
at getCodeFrame (C:\Users\frank\repos\babylonwin\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\Server.js:1028:18)
at Server._symbolicate (C:\Users\frank\repos\babylonwin\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\Server.js:1101:22)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Server._processRequest (C:\Users\frank\repos\babylonwin\node_modules@react-native-community\cli-plugin-metro\node_modules\metro\src\Server.js:458:7) {
errno: -4058,
syscall: ‘open’,
code: ‘ENOENT’,
path: ‘C:\Users\frank\repos\babylonwin\code’
}
FYI:
“dependencies”: {
“@babylonjs/core”: “^5.34.0”,
“@babylonjs/loaders”: “^5.34.0”,
“@babylonjs/react-native”: “^1.4.1”,
“react”: “^18.2.0”,
“react-native”: “^0.70.6”,
“react-native-permissions”: “^3.6.1”,
“react-native-windows”: “^0.70.7”
},
“devDependencies”: {
“@babel/core”: “^7.20.5”,
“@babel/runtime”: “^7.20.6”,
“@react-native-community/eslint-config”: “^3.2.0”,
“babel-jest”: “^29.3.1”,
“eslint”: “^8.28.0”,
“jest”: “^29.3.1”,
“metro-config”: “^0.73.3”,
“metro-react-native-babel-preset”: “^0.73.3”,
“react-test-renderer”: “^18.2.0”,
“yarn-upgrade-all”: “^0.7.1”
}