Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Adapter static doesn't properly crawl links in svelte components

$
0
0
Error: The following routes were marked as prerenderable, but were not prerendered because they were not found while crawling your app:  - /changelog

I got this error and running build with my adapter-static failed, even though I have a link to changelog:

<a href="/changelog">changelog</a>

in my component inside a modal.

When I add the same line:

<a href="/changelog">changelog</a>

inside my homepage (+page.svelte), then it does not show the above error and successfully prerenders /changelog.

When I fork https://node.new/sveltekit and remove the /about link and add adapter-static and run build, it seems to run fine without errors, so it must be a project specific problem. But I've confirmed it's resolved by simply pasting in <a href="/changelog">changelog</a> into my file.

Thanks in advance!


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>