-
Notifications
You must be signed in to change notification settings - Fork 5
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
Build error: The following routes were marked as prerenderable ...
#4
Comments
The following routes were marked as prerenderable ...
It fixes this error building the app: ``` node:internal/event_target:1100 process.nextTick(() => { throw err; }); ^ Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app: - /(pages)/index See https://kit.svelte.dev/docs/page-options#prerender-troubleshooting for info on how to solve this at prerender (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:505:9) at async MessagePort.<anonymous> (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/utils/fork.js:22:16) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:326:10) at [kOnMessage] (node:internal/worker:337:37) at MessagePort.<anonymous> (node:internal/worker:232:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.12.2 ```
b60a76d chore: auto fix lint errors (Jose Celano) 8274bdb fix: [#4] index page not being preendered (Jose Celano) Pull request description: It fixes this error building the app: ``` node:internal/event_target:1100 process.nextTick(() => { throw err; }); ^ Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app: - /(pages)/index See https://kit.svelte.dev/docs/page-options#prerender-troubleshooting for info on how to solve this at prerender (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/core/postbuild/prerender.js:505:9) at async MessagePort.<anonymous> (file:///home/josecelano/Documents/git/committer/me/github/torrust/torrust-website-v2/node_modules/@sveltejs/kit/src/utils/fork.js:22:16) Emitted 'error' event on Worker instance at: at [kOnErrorMessage] (node:internal/worker:326:10) at [kOnMessage] (node:internal/worker:337:37) at MessagePort.<anonymous> (node:internal/worker:232:57) at [nodejs.internal.kHybridDispatch] (node:internal/event_target:826:20) at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28) Node.js v20.12.2 ``` ACKs for top commit: josecelano: ACK b60a76d Tree-SHA512: e5fad8cbc061d7be72df3905f6fb19e0ae6cb62886003b326e6febf5a5b72596ad5b8da8f282405b9e1a487664791079a6215e56b2e879db9780fa1bbf86c55d
Hi @grmbyrn I've just changed the path from "index" to "torrent-index" in the URL and it works. I don't know why. There must be a problem using "index" for a page. Anyway, "torrent-index" could be even better from the SEO perspective. |
Hi @josecelano That's great. I looked it up and it seems that SK associates 'index' as the root path '/' and prerenders it in an incorrect way. Good to know for the future. |
Hi @grmbyrn the page can't be built for production with:
npm run build
This is the error:
The text was updated successfully, but these errors were encountered: