SceneView / sceneform-reactnative

Sceneform React Native AR Component using ARCore and Google Filament as 3D engine. This the Sceneform Maintained Component for React Native
MIT License
52 stars 10 forks source link

Package failing #22

Open OnurTosyalioglu opened 2 years ago

OnurTosyalioglu commented 2 years ago

After adding package '@sceneview/react-native-sceneform', I got error on metro:

Error: While trying to resolve module @sceneview/react-native-sceneform from file /Volumes/Untitled/ar/svtemplate2/App.js, the package /Volumes/Untitled/ar/svtemplate2/node_modules/@sceneview/react-native-sceneform/package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (/Volumes/Untitled/ar/svtemplate2/node_modules/@sceneview/react-native-sceneform/src\index.js. Indeed, none of these files exist:

Screen Shot 2022-07-21 at 21 30 30

What I tried is

! examples work with source, but installing package and run fails

doranteseduardo commented 2 years ago

I will review the issue, try to reproduce and will come back to you as soon as possible.

OnurTosyalioglu commented 2 years ago

Thanks, i think there is a metro configuration issue. I'm also working on it. If I had any info, will feedback here.

SyntaxError403 commented 2 years ago

Hello has there been any update on how to resolve this? I am encountering the same problem with RN version .69.2

blackneck commented 11 months ago

Hello has there been any update on how to resolve this? I am encountering the same problem with RN version .69.2

I had the same problem on Mac OS seems like package.json using backslashes from windows react-native-sceneform/src\index.js just change node_modules/@sceneview/react-native-sceneform/package.json to unix-like and try again image


  "module": "lib/module/index.js",
  "types": "lib/typescript/index.d.ts",
  "react-native": "src/index.js",