-
-
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
Routes with umlauts are not found in node builds #2166
Comments
Sure, a PR would be welcomed. Thanks for tracking this down! |
I think there's something weird going on here with npm. It kept giving me old versions of the packages. I had to manually specify the versions:
After doing that, I'm getting a new error, which looks like an issue with I get a 404 if I visit http://localhost:3000/_app/pages/hellö.svelte-a480177e.js Eventhough its in the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The Sirv bug is here: lukeed/sirv#82 (comment) Vite worked around it here vitejs/vite#1426 |
@noahsalvi can you test #2191 and confirm it fixes the issue for you? |
It works 🎉 |
@noahsalvi thanks for helping with this! I just released the fix. It changed a bit since you last tested, so you may want to test once again just to confirm |
I just tested it with my repro with kit 148 and adapter-node 41 and sadly i'm getting the same error as before: btw Glad that i was/am helpful. Also a big "thanks" to you for doing so much for this awesome project |
okay 😢 🔫 glad I told you to test again at least |
@lukeed it seems that You can use https://github.com/noahsalvi/kit-umlaut-repro to test and set the latest versions in
|
You're not quite testing the same thing. After doing |
I'll try that too, but I meant local/node_modules cache. Make sure you delete the |
Ok so |
preview works for me. Make sure to also delete the build folder before running the build command. |
It does a production build of your JS, etc. But it can't actually run in production on all the various platforms. I don't know how you'd mirror the Vercel, Netlify, platforms, etc. Maybe integrating with their dev tools. But thus far that's been a TODO |
Ok so what I'm hearing is that And |
Verified locally that the reproduction now works with |
Should be fixed with the latest version. Thanks again for the help, Luke |
@benmccann |
I made a new issue for that one since there was already a lot of discussion here that's not necessarily related: #2201 |
Describe the bug
When you create a route that has an umlaut in it, for example "über-uns" and you reload the page, you get a 404 Not found. This only happens when you run the build created by the adapter-node, preview and dev work as expected.
Reproduction
https://github.com/noahsalvi/kit-umlaut-repro
install deps; npm run build; node build/
Logs
System Info
Severity
serious, but I can work around it
Additional Information
The problem is that the adapter-node parses the url which encodes the umlaut characters, resulting in the route not being found.
Meaning
const parsed = new URL(......)
should be removed and replaced with just usingreq.path
andnew URLSearchParams(req.query)
I could make a pull request if needed.
The text was updated successfully, but these errors were encountered: