-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Kit Packaged libs don't work outside of dev #4460
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
Turns out that Unrelated to netlify specifically so have updated title |
I'm not sure we can do much here. This sounds like an issue with the importer side. |
A solution is to configure |
hmm, should vite-plugin-svelte handle that automatically? It feels like packages created with |
|
I think I might be misunderstood @dominikg @bluwy @dummdidumm - the issue is that the fix's I found for this:
|
closed via #4791 |
Describe the bug
One of my packages svelte-copy, which uses svelte kit package, fails to build when using netlify. I build a repro here. I get the error of
Must use import to load ES Module: /var/task/node_modules/svelte-copy/index.js
I tracked this down to
.netlify/server/entries/pages/index.svelte.js
which has the linevar import_svelte_copy = require("svelte-copy")
Reproduction
https://github.com/ghostdevv/svelte-copy-require-repro
Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: