-
Notifications
You must be signed in to change notification settings - Fork 51
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
@sveltejs/adapter-cloudflare: cloudflare worker (pages) with vite: "default" is not exported by module #37
Comments
I too am having this issue with the exact same situation |
@matthewrobb actually after more digging it seems to be a problem with the vite wasm plugin, ive opened an issue there if you want to check it out. |
The documentation on this repo is just wrong |
Hi! Sorry for the delay. The combination of SvelteKit + Cloudflare Pages / Workers has not been properly tested yet. Will reflect that in README.md. @happysalada, @matthewrobb could you please share a repository with a reproducible case? Even small things such as version of the packages may be the root of the issue. If that is not possible, consider using Here are some preliminary notes when finding the cause of the issue. SvelteKit + Cloudflare is a tricky combination. When using On the other way, when using |
here is the repo https://github.com/happysalada/glad-chat I've tried I've tried using |
@dqbd did you have a chance to have a look ? |
small update that since I'll be making commits to the repo |
Hello! Can reproduce the issue, but still need more time to see whether it is something I can do on the package side. Meanwhile updated the README.md to reflect the incompatibility issue. |
After reporting on the vite wasm plugin Menci/vite-plugin-wasm#33 (comment) |
Can I pay you to integrate it with cloudflare worker? Because I don't know programming, it is too difficult to deploy, so I look forward to your reply. |
Hi! For now, consider using |
hi, I've tried the full vite and cloudflare worker setup, however vite seems to have a problem on the wasm file
just to make sure, I've got both
in my vite config
and I have got the following in my server page
not having the init line actually creates an error that the wasm wasn't initialized properly.
(I'm using sveltekit and deploying on cloudflare pages, just for context).
The text was updated successfully, but these errors were encountered: