sceneform-reactnative icon indicating copy to clipboard operation
sceneform-reactnative copied to clipboard

Package failing

Open OnurTosyalioglu opened this issue 3 years ago • 4 comments

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

  • change react-native version upgrade/downgrade
  • clean & reinstall node_modules & gradle clean & uninstall/reinstall app

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

OnurTosyalioglu avatar Jul 21 '22 18:07 OnurTosyalioglu

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

doranteseduardo avatar Jul 21 '22 22:07 doranteseduardo

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

OnurTosyalioglu avatar Jul 21 '22 22:07 OnurTosyalioglu

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

SyntaxError403 avatar Oct 28 '22 00:10 SyntaxError403

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",

blackneck avatar Nov 28 '23 12:11 blackneck