Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package failing #22

Open
OnurTosyalioglu opened this issue Jul 21, 2022 · 4 comments
Open

Package failing #22

OnurTosyalioglu opened this issue Jul 21, 2022 · 4 comments

Comments

@OnurTosyalioglu
Copy link

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

@doranteseduardo
Copy link
Member

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

@OnurTosyalioglu
Copy link
Author

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

@SyntaxError403
Copy link

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

@blackneck
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants