-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
SvelteKit deployment issue w/ Swiper #3015
Comments
I've created a repo that uses Svelte (not Svelte Kit) and it seems there are no issues there. It deploys fine. Here is the repo link: https://github.com/onderbakirtas/swiper-test I can move this issue to the correct repo if this is not an issue with SvelteKit itself. |
Here is the error in the bash when being deployed to CloudFlare. > Using @sveltejs/adapter-cloudflare
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".css" for /opt/buildhome/repo/node_modules/swiper/swiper.min.css
at new NodeError (node:internal/errors:371:5)
at Object.file: (node:internal/modules/esm/get_format:72:15)
at defaultGetFormat (node:internal/modules/esm/get_format:85:38)
at defaultLoad (node:internal/modules/esm/load:13:42)
at ESMLoader.load (node:internal/modules/esm/loader:303:26)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:230:58)
at new ModuleJob (node:internal/modules/esm/module_job:63:26)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:244:11)
at async ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:78:21)
at async Promise.all (index 2)
> 500 /hi
Error: 500 /hi
at file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:86:11
at visit (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:222:5)
at async prerender (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:303:6)
at async Object.prerender (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:368:4)
at async adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/adapter-cloudflare/index.js:27:4)
at async adapt (file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/chunks/index4.js:393:2)
at async file:///opt/buildhome/repo/node_modules/@sveltejs/kit/dist/cli.js:896:5
Failed: build command exited with code: 1 |
I think this is an issue in the library: nolimits4web/swiper#5288 (comment) I sent a fix to the libraries. I'll close this issue since it's not clear there's anything else to do here |
Describe the bug
The project doesn't build and deploy on Vercel and CloudFlare, it does work on local.
Reproduction
https://github.com/onderbakirtas/upo
Logs
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: