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: Miniflare should Disallow Wasm code generation #8149

Open
wesbos opened this issue Feb 14, 2025 · 1 comment
Open

🐛 BUG: Miniflare should Disallow Wasm code generation #8149

wesbos opened this issue Feb 14, 2025 · 1 comment
Labels
bug Something that isn't working

Comments

@wesbos
Copy link

wesbos commented Feb 14, 2025

Which Cloudflare product(s) does this pertain to?

Miniflare

What versions are you using?

wrangler 3.109.1

What operating system and version are you using?

Mac OS 15.2

Please provide a link to a minimal reproduction

No response

Describe the Bug

Packages that ship inline WASM do not work on Clouddflare due to security issues. Shiki is an example and provides docs on how to import the wasm yourself: https://shiki.matsu.io/guide/install#cloudflare-workers

This error only happens once you deploy to cloudflare, and not when using miniflare.

It would be nice if miniflare matched cloudflare production as close as possible, so is it possible to have this throw an error when developing locally?

Please provide any relevant error logs

No response

@wesbos wesbos added the bug Something that isn't working label Feb 14, 2025
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Feb 14, 2025
@vicb
Copy link
Contributor

vicb commented Feb 15, 2025

Can you attach a minimal repro with the code working with wrangler dev and failing when deployed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants