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

Bug: Cloudflare pages gives a CompileError at runtime #128

Open
Saku75 opened this issue Dec 5, 2024 · 4 comments
Open

Bug: Cloudflare pages gives a CompileError at runtime #128

Saku75 opened this issue Dec 5, 2024 · 4 comments

Comments

@Saku75
Copy link

Saku75 commented Dec 5, 2024

I'm running into a problem on Cloudflare pages, where at runtime it throws this error CompileError: WebAssembly.compile(): Wasm code generation disallowed by embedder.
I'm not totally sure its @serenity-kit/opaque that's directly causing the problem but it is the only WASM I'm using in my project.
For context, it's a Sveltekit application, not sure if that can be of help. 😄

Reach out if there is any extra information i can give to help resolve this problem.

@nikgraf
Copy link
Member

nikgraf commented Dec 5, 2024

This is a limitation of the Cloudflare runtime. By patching the library you possibly could work around it. See cloudflare/next-on-pages#704 (comment)

@Saku75
Copy link
Author

Saku75 commented Dec 6, 2024

Thank you so much, I'll look to see if i can work around it.

Would you consider adding a version of this package that is compatible with Cloudflare's runtime?
Could be quite useful 😄

@nikgraf
Copy link
Member

nikgraf commented Dec 6, 2024

I won't have time myself, but if you update the build process to generate one and open a PR. Happy to review and accept it.

@Saku75
Copy link
Author

Saku75 commented Dec 6, 2024

Not an expert in WASM, so ill give it my best shot when i have some time for it 😄
Maybe i should change the title to a feature request?

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

2 participants