Closed dsmtE closed 3 years ago
As of version next.97 of Kit and next.8 of the static adapter, you need to use ESM configuration files and import
s for the adapters instead of require
s.
If anyone bumps into this problem, here's the example of how the config should look like
Not as simple as copying the config - as everything is in flux, sometimes the adapter@next goes out of sync with kit@next. Use:
pnpm view @sveltejs/kit versions
pnpm view @sveltejs/adapter-static versions
To view what's available. For example adapter-static@1.0.0-next.9
and kit@1.0.0-next.107
and reformatting svelte.config.js
worked for me.
Had the same error just a moment ago and no solutions helped, but turned out I installed the dependency not as dev dependency. Moved it and now works fine.
I am trying to use this adapter within my project, but I encounter this issue:
my svelte.config.cjs :
Could you help my ? Thanks in advance.