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

How can I use this package in react native applications? (However, this package itself specifies a main module field that could not be resolved ) #292

Closed
rubanraj54 opened this issue Nov 22, 2021 · 4 comments

Comments

@rubanraj54
Copy link

rubanraj54 commented Nov 22, 2021

Hi,

Thanks for the great package.

I would like to use this package in react native applications, but I am getting the following error.

Screenshot 2021-11-22 at 17 15 04

I tried this solution(https://stackoverflow.com/a/60126739/2708249) but didn't work.

Could you/anyone please let me know how can I use this package in react-native applications?

Thanks.

@rubanraj54 rubanraj54 changed the title How can I use this package in react native applications? How can I use this package in react native applications? (However, this package itself specifies a main module field that could not be resolved ) Nov 22, 2021
@RosCoder
Copy link

RosCoder commented Dec 1, 2021

@rubanraj54
Hey! Metro does not support packages with .cjs sources. This solution works for me:
facebook/metro#535 (comment)

@rubanraj54
Copy link
Author

@RosCoder Thanks for the hint, let me try your solution.

@rubanraj54
Copy link
Author

@RosCoder Thanks, your solution fixed the issue.

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

3 participants