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
However, during npm run build, I get this warning:
src/routes/arrival/+page.svelte
export const trailingSlash will be ignored — move it to +page(.server).js/ts instead.
Reproduction
After some debugging, I discovered that the warning was caused by a comment inside /routes/arrival/+page.svelte that included the word "trailingSlash". Simply removing that comment resolved the issue.
I'm not sure why the build process interprets a comment as an actual export. Possibly a bug in the static analysis?
Logs
System Info
Chrome
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I'm trying to use trailingSlash = 'always' in src/routes/+layout.js, as described in the docs:
https://svelte.dev/docs/kit/page-options#trailingslash
However, during npm run build, I get this warning:
Reproduction
After some debugging, I discovered that the warning was caused by a comment inside /routes/arrival/+page.svelte that included the word "trailingSlash". Simply removing that comment resolved the issue.
I'm not sure why the build process interprets a comment as an actual export. Possibly a bug in the static analysis?
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: