-
-
Notifications
You must be signed in to change notification settings - Fork 107
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
Failed Build on Netlify #61
Comments
Yes I have the same issue on v11 and on v10 it seems there is another issue
Any idea to which version we should change? |
v11 now includes an ESM bundle and uses named export I'm not sure how easy it would be to have |
thanks for reporting this. The tests with adapter-static still worked so this slipped through :/ I wonder whats going on here though, svelte-hmr shouldn't be part of final build output as it is only used for hmr during dev. |
IIRC node had issues in importing named imports of CJS files that do named exports. But I can't reproduce on my side too, could be related to the node version used? A repro would be great @zommerberg @dominikg I don't think the error shown was part of the build output, but part of the build process when Vite builds and uses the plugin. These questions would be resolved if there were a repro though 😄 |
@bluwy I can reproduce it only when I try to deploy it. Building it locally doesn't throw an error. The default sveltekit project should be able to reproduce it. |
This solved my issue thank you @bluwy! |
@zommerberg Is the netlify deploy log public? Would be nice to see when/how it fails. The log should also show the node version, which I'm guessing it could be that an older node version was used that caused the error, the minimum supported node version for vite-plugin-svelte is v12, |
yes, please share a full log and a minimal reproduction. I think you're able to select a node version in netlify by adding a |
according to this sveltejs/kit#1517 (comment) , you have to update your project to match the sveltekit template and add a . node-version file that tells netlify to use a compatible version. vite-plugin-svelte/package.json Line 80 in 09b63d3
|
@dominikg I can confirm that manually setting the node version to As far as the old log goes:
|
thanks |
Hello!
From v11 I get the following error when trying to deploy to netlify:
Other people reported the same issue with github pages.
Downgrading to v10 manually solves the problem.
The text was updated successfully, but these errors were encountered: