-
-
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
[adapter-vercel] Build fails - path to bundle not being correctly outputted on Windows? #3163
Comments
As expected this works fine on Ubuntu. Something to do with |
…163) (#3200) * Use path/posix to resolve the relative path if we use the default path implementation, on windows we get malformed output since esmodules use "/" as the seperator (related #3163 ) * use posix as export instead of subpackage * Add changeset * Update .changeset/fuzzy-jobs-retire.md Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> Co-authored-by: Ignatius Bagus <ignatius.mbs@gmail.com>
Is this resolved by the linked PR? |
It should be resolved in the latest version ( |
So I deployed my svelte-kit project to vercel and got this exact same error. It builds fine on my windows pc |
same error on vercel, builds fine on manjaro. |
Same error |
same error on vercel. I am using a mac. |
same error here. |
update: I just run "npm update" and works fine |
Yup updating npm worked for me. Thanks @gpaiva985 ! |
Describe the bug
ER: Project builds successfully
AR: The following errors:
Note the paths have forward slashes and the error path seems wrong >
..outputserver
instead of..\output\server
, looks like\
is not being escaped properly perhaps? This would only show up on Windows and iirc no Svelte maintainers use Windows??I would love to submit a PR but would need some guidance.
Reproduction
https://github.com/CobyPear/adapter-vercel-repro
clone the repo,
npm i
andnpm run build
should show the following errors in the console (on WIndows 11, will check Ubuntu if I have time):Severity
blocking an upgrade
Additional Information
Not sure how to work around this at the moment, any help is much appreciated :)
The text was updated successfully, but these errors were encountered: