-
Notifications
You must be signed in to change notification settings - Fork 0
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
Using lit-node-client-nodejs
inside a Cloudflare Worker
#14
Comments
Hi. I'm the original author. I'd like to make this an official feature request if nobody minds... Rationale: Making |
@zach-is-my-name |
Thanks @joshLong145. I spent the day yesterday with various GPTs trying to re-export Cloudflare's crypto to get it working with
I made my test repo available. https://github.com/zach-is-my-name/twilight-field-ad91# |
@zach-is-my-name module.exports = {
//...
resolve: {
fallback: {
crypto: require.resolve('node:crypto')
}
} |
Hi @joshLong145 , I don't know how they worked exactly, wasm perhaps? Anyway here's my response to your suggestion: Thank you for your suggestion regarding the use of While Cloudflare Workers do support a subset of Node.js's crypto module via the Given this, I believe it might be beneficial to explore other avenues that could address these environment discrepancies more effectively. Perhaps we could consider: Testing with Cloudflare-specific Tools: Utilizing tools designed to work closely with Cloudflare's runtime from the outset, ensuring compatibility without relying on traditional Node.js build tools. Best regards, Zach |
Hey @zach-is-my-name just wanted to follow up on this: The team is interested in investigating the compatibility issues and a ticket has been created to track this. However, there is not ETA available at the time. I'll make sure to update you as I hear more about progress on this |
Much appreciated. I'm happy to close it if it's already being tracked internally. |
Yes, it is! |
Description of the issue
From the user:
Additional context
No response
The text was updated successfully, but these errors were encountered: