-
Notifications
You must be signed in to change notification settings - Fork 219
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
Node standard library module "node:crypto". #210
Comments
@guivr would you please provide some additional details about the setup of your project or a simple example project that demonstrates the issue? Currently I'm able to build and run a React native project that has a dependency on Replicate and run it. I've attempted to get a web application running using the React Native tutorial and am able to import and run the replicate library fine and launch the web version of the app. So understanding what versions of react-native you're using as well as the platforms and build setup would be helpful to understanding the problem further. |
@aron yes I've also used that tutorial and created the app via the The platform is iOS. I'm running on my own iPhone (13 Pro).
|
When I install version 0.27.1 of replicate-javascript library in react-native project, I get error like below.
Node Version: 18.18.0
The package at "node_modules/replicate/lib/util.js" attempted to import the Node standard library module "node:crypto". It failed because the native React runtime does not include the Node standard library
When I install version 0.26.0, it does not give any error. The problem seems to be related to the improvements made in the newly released version 0.27.1.
How can we find a solution for this?
Update:
I don't use webhooks in the project. I applied a temporary patch like below, but I haven't tested it for webhooks!
The text was updated successfully, but these errors were encountered: