-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cloudflare cannot find the devalue module #13627
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
Comments
I also have this issue with clsx module, but this issue seems not limited to specific module but any module. |
Same here, from a relatively newly generated sv project.
|
I temporarily solved downgrading "@sveltejs/adapter-cloudflare" from "^6.0.0" to "^5.1.0" in a new project.
|
Same problem. 13:18:20.176 | ✨ Success! Uploaded 22 files (88 already uploaded) (1.10 sec) -- | -- 13:18:20.176 | 13:18:20.743 | ✨ Upload complete! 13:18:24.722 | Success: Assets published! 13:18:25.961 | Error: Failed to publish your Function. Got error: Uncaught Error: No such module "server/chunks/clsx". imported from "server/chunks/index.js"` I'm using shadcn-svelte util
|
Sorry about this. Please revert to @sveltejs/adapter-cloudflare v5.1.0 for now, or follow this workaround, or wait for v6.0.1 to be released. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I was making changes to a SvelteKit project that had no problems until yesterday. I use Cloudflare for hosting. I got the error below from Cloudflare:
My local repository contains
node_modules/devalue
, which is used in multiple files withinnode_modules/@sveltejs/kit/src
. There is no issue when usingyarn dev
ornpm run preview
locally.Reproduction
I have a normal SvelteKit installation plus this
hooks.ts
:My
svelte.config.js
:System Info
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: