我想在我的 Svelte Kit 应用程序中使用 @sveltejs/adapter-static(想把它变成一个 SPA)。我使用 npm i @sveltejs/adapter-static 安装了静态适配器。
svelte.config.cjs 中的代码如下所示
kit: {
// By default, `npm run build` will create a standard Node app.
// You can create optimized builds for different platforms by
// specifying a different adapter
adapter: adapter({
fallback: 'app.html'
}),
当我启动我的应用程序时,npm run dev
出现以下错误:
config.kit.adapter should be an object with an "adapt" method
我怎样才能解决这个问题?