Can't export static html from Sveltekit Static adapter

This page summarizes the projects mentioned and recommended in the original post on /r/SvelteKit

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SvelteKit

    web development, streamlined (by sveltejs)

  • Using u/sveltejs/adapter-static u/sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic: - src\routes/ You have the following options: - set the `fallback` option — see https://github.com/sveltejs/kit/tree/master/packages/adapter-static#spa-mode for more info. - add `export const prerender = true` to your root `+layout.js/.ts` or `+layout.server.js/.ts` file. This will try to prerender all pages. - add `export const prerender = true` to any `+server.js/ts` files that are not fetched by page `load` functions. - pass `strict: false` to `adapter-static` to ignore this error. Only do this if you are sure you don't need the routes in question in your final app, as they will be unavailable. See https://github.com/sveltejs/kit/tree/master/packages/adapter-static#strict for more info. If this doesn't help, you may need to use a different adapter. u/sveltejs/adapter-static can only be used for sites that don't need a server for dynamic rendering, and can run on just a static file server. See https://kit.svelte.dev/docs/page-options#prerender for more details error during build: Error: Encountered dynamic routes at adapt (file:///C:/programming/web/svelte/my-app/node_modules/@sveltejs/adapter-static/index.js:53:12) at adapt (file:///C:/programming/web/svelte/my-app/node_modules/@sveltejs/kit/src/core/adapt/index.js:28:8) at Object.handler (file:///C:/programming/web/svelte/my-app/node_modules/@sveltejs/kit/src/exports/vite/index.js:522:12) at async PluginDriver.hookParallel (file:///C:/programming/web/svelte/my-app/node_modules/rollup/dist/es/shared/rollup.js:22670:17) at async Object.close (file:///C:/programming/web/svelte/my-app/node_modules/rollup/dist/es/shared/rollup.js:23750:13) at async Promise.all (index 0) at async build (file:///C:/programming/web/svelte/my-app/node_modules/vite/dist/node/chunks/dep-67e7f8ab.js:45242:13) at async CAC. (file:///C:/programming/web/svelte/my-app/node_modules/vite/dist/node/cli.js:756:9) error Command failed with exit code 1.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts