Skip to content

Commit

Permalink
fix: [torrust#4] index page not being preendered
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
josecelano committed Sep 24, 2024
1 parent 2ab71a6 commit 8274bdb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/components/organisms/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
<div class="links-wrapper">
<ul class="links">
<li>
<a href="/index" class={currentPath === '/index' ? 'active' : ''} on:click={toggleMenu}
<a href="/torrent-index" class={currentPath === '/torrent-index' ? 'active' : ''} on:click={toggleMenu}
>Index</a
>
</li>
<li>
<a
href="/tracker"
href="/torrent-tracker"
class={currentPath === '/tracker' ? 'active' : ''}
on:click={toggleMenu}>Tracker</a
>
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8274bdb

Please sign in to comment.