You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get a react native application working that will run web, iOS, android and I'm experiencing an issue, maybe it's a documentation thing but I wanted to check.
According to the documentation I should be using @reac-three/drei/native for any imports. When I do this and try to run on web I get the following error:
Metro error: require() of ES Module /Users/tonymauro/Code/projects/three-fiber/node_modules/@babel/runtime/helpers/esm/extends.js from /Users/tonymauro/Code/projects/three-fiber/node_modules/expo-router/node/render.js.bundle?platform=web&dev=true&hot=false&transform.engine=hermes&transform.routerRoot=app&resolver.environment=node&transform.environment=node&unstable_transformProfile=hermes-stable not supported.
Instead change the require of extends.js in /Users/tonymauro/Code/projects/three-fiber/node_modules/expo-router/node/render.js.bundle?platform=web&dev=true&hot=false&transform.engine=hermes&transform.routerRoot=app&resolver.environment=node&transform.environment=node&unstable_transformProfile=hermes-stable to a dynamic import() which is available in all CommonJS modules.
if I remove the /native it works fine and doesn't seem to cause any errors with iOS/android (altho I'm debugging a three issue there so it might be something still).
I'm using the latest released packages and expo 52. Is this a documentation issue where I should be not using /native if I intend to use web?
Thanks!
The text was updated successfully, but these errors were encountered:
I'm trying to get a react native application working that will run web, iOS, android and I'm experiencing an issue, maybe it's a documentation thing but I wanted to check.
According to the documentation I should be using @reac-three/drei/native for any imports. When I do this and try to run on web I get the following error:
if I remove the /native it works fine and doesn't seem to cause any errors with iOS/android (altho I'm debugging a three issue there so it might be something still).
I'm using the latest released packages and expo 52. Is this a documentation issue where I should be not using /native if I intend to use web?
Thanks!
The text was updated successfully, but these errors were encountered: