Skip to content
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

page.url has wrong path on the client (sveltekit 2.14 regression bug) #13220

Closed
samuelstroschein opened this issue Dec 22, 2024 · 0 comments · Fixed by #13222
Closed

page.url has wrong path on the client (sveltekit 2.14 regression bug) #13220

samuelstroschein opened this issue Dec 22, 2024 · 0 comments · Fixed by #13222

Comments

@samuelstroschein
Copy link
Contributor

Describe the bug

The $page.url.pathname resolves differently on the server and client.

  • The bug has been introduced with version 2.14.
  • See the video for more context

Reproduction

https://github.com/samuelstroschein/sveltekit-page-regression-bug

  1. npm i
  2. npm run dev
  3. open the /pl route
  4. see how the pathname changes
Troubleshooting.Page.URL.Bug.in.SvelteKit.2.14.mp4

Logs

No response

System Info

Couldn't run.


npm ERR! code ENOENT
npm ERR! syscall lstat
npm ERR! path /Users/samuel/.nvm/versions/node/v18.18.0/lib/node_modules/node/lib
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, lstat '/Users/samuel/.nvm/versions/node/v18.18.0/lib/node_modules/node/lib'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Severity

blocking an upgrade

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant