Newbie to Sapper and Svelte, have used other frameworks.
I've created an author site in sapper that lists author's books on the main page, and then a book-specific page linked from the book items - the book page is in books/[slug].svelte
(and books/[slug].js
for the server side.)
Going to the book page from the link (located in another component) renders perfectly - no issues.
If I reload, or type in the book url directly, there's no html: the page shows the json for the book item. The inspector shows only a pre
tag filled with the json.
The site is patterned pretty much after the demo site created from the degit rollup template (and modified from that.)
Any idea what's happening, here? What am I missing, I wonder?
Thoughts appreciated. I can provide more details and a github repo, if needed.