Closed navneetsharmaui closed 3 years ago
Better prerendering error messages were added in https://github.com/sveltejs/kit/pull/1062. Can you upgrade to the latest version of SvelteKit and see if you get a more informative error message?
@benmccann The sveltekit version is 1.0.0-next.83 And the is the screenshot of the build error now
For the nested layouts, the child route layout is still trying to link the favicon.ico into its immediate parent directory rather than to the favicon.ico which is present at the root build folder.
Dependencies info
Getting a 404 on an .ico
file seems likely to be a usage issue and fairly unlikely to be a bug in SvelteKit.
I'd recommend you take a look at this FAQ: https://github.com/sveltejs/kit/blob/master/documentation/faq/45-assets.md
If that doesn't help, try asking on Discord
Looks like you have a relative favicon.ico
link instead of an absolute one, like this: https://github.com/sveltejs/kit/blob/32b3fcde3c206347d0ca58ea2f8ecec649f5b7f5/packages/create-svelte/templates/default/src/app.html#L5
Describe the bug When using adapter-static the application is not building properly when the route component contains the async load function to load the data from JSON file and when a page contains the nested layouts/routes.
Logs
This occurs when using SSR options is false in the configuration.
This occurs when using SSR options is false in the configuration and force option is true in prender in configuration.
This occurs when using SSR options is true in the configuration.
This occurs when using SSR options is true in the configuration and force option is true in prender in configuration.
Svelte Config
To Reproduce
Repo you can refer to for the code. https://github.com/navneetsharmaui/sveltekit-starter