You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which should be making console.log of the tracked URL object delegate to logging the original URL (and thus bypass the thing blocking access to url.hash) but maybe that broke at some point and/or doesn't work with certain Node versions.
Error: Cannot access url.search on a page with prerendering enabled
at URL.get (file://.../_website/.svelte-kit/output/server/index.js:273:15)
at [nodejs.util.inspect.custom] (node:internal/url:685:23)
at formatValue (node:internal/util/inspect:785:19)
at formatProperty (node:internal/util/inspect:1822:11)
at formatRaw (node:internal/util/inspect:1033:9)
at formatValue (node:internal/util/inspect:820:10)
at inspect (node:internal/util/inspect:347:10)
at formatWithOptionsInternal (node:internal/util/inspect:2173:40)
at formatWithOptions (node:internal/util/inspect:2035:10)
at console.value (node:internal/console/constructor:324:14)
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
pngwn
changed the title
Prerendering app that logging $path will incorrectly fail
Prerendering app that logs $path will incorrectly fail
Aug 10, 2023
eltigerchino
changed the title
Prerendering app that logs $path will incorrectly fail
Prerendering app that logs $page will incorrectly fail
Aug 16, 2023
fixes#10526
We were allow logging when url.hash is disabled but not when url.search is disabled. Just copied over the same thing for when url.search is disabled.
Describe the bug
Logging out parts of the URL that are not supported while prendering should be ignored due to out magical formatter.
A very clever cyborg fox told me this:
Reproduction
https://stackblitz.com/edit/sveltejs-kit-template-default-eh6kan?file=src%2Froutes%2F%2Bpage.svelte
Logs
Error: Cannot access url.search on a page with prerendering enabled at URL.get (file://.../_website/.svelte-kit/output/server/index.js:273:15) at [nodejs.util.inspect.custom] (node:internal/url:685:23) at formatValue (node:internal/util/inspect:785:19) at formatProperty (node:internal/util/inspect:1822:11) at formatRaw (node:internal/util/inspect:1033:9) at formatValue (node:internal/util/inspect:820:10) at inspect (node:internal/util/inspect:347:10) at formatWithOptionsInternal (node:internal/util/inspect:2173:40) at formatWithOptions (node:internal/util/inspect:2035:10) at console.value (node:internal/console/constructor:324:14) This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Please open an issue with this stack trace at https://github.com/nodejs/node/issues
System Info
Severity
annoyance
Additional Information
It is easily worked around (remove the logs), however figuring out that you need to remove the logs is relatively challenging.
The text was updated successfully, but these errors were encountered: