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

Error when trying to run this package on react-native #61

Open
Saad-Birdy opened this issue Jul 19, 2023 · 0 comments
Open

Error when trying to run this package on react-native #61

Saad-Birdy opened this issue Jul 19, 2023 · 0 comments

Comments

@Saad-Birdy
Copy link

I wanted to ask if there is any way to make this library run on react-native. I am succesfully able to build the app but I get this error when the code runs:

error: Error: While trying to resolve module promjs from file D:\Repos\field-rep-app\mobile\node_modules\@cabify\prom-react\dist\index.js, the package D:\Repos\field-rep-app\mobile\node_modules\promjs\package.json was successfully found. However, this package itself specifies a main module field that could not be resolved (D:\Repos\field-rep-app\mobile\node_modules\promjs\lib\index.js. Indeed, none of these files exist:

I am using "@cabify/prom-react": "^0.3.0" which utilizes promjs "^0.4.1" .

react: 17.0.2 => 17.0.2
react-native: 0.68.2 => 0.68.2

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

1 participant