You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create a new SvelteKit demo app with all extras and TypeScript
uninstall @sveltejs/adapter-auto
install @sveltejs/adapter-static
run npm run build in the terminal
Expected: Build succeeds (or yells at me about dynamic routes)
Actual: see error in Logs below
Logs
> Using @sveltejs/adapter-static
error during build:
TypeError: Cannot read properties of undefined (reading 'strict')
at adapt (file:///Users/path-to-project/node_modules/@sveltejs/adapter-static/index.js:27:46)
at adapt (file:///Users/path-to-project/node_modules/@sveltejs/kit/src/core/adapt/index.js:28:8)
at Object.handler (file:///Users/path-to-project/node_modules/@sveltejs/kit/src/exports/vite/index.js:493:12)
at async PluginDriver.hookParallel (file:///Users/path-to-project/node_modules/rollup/dist/es/shared/rollup.js:22632:17)
at async Object.close (file:///Users/path-to-project/node_modules/rollup/dist/es/shared/rollup.js:23709:13)
at async Promise.all (index 0)
at async build (file:///Users/path-to-project/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45667:13)
at async CAC.<anonymous> (file:///Users/path-to-project/node_modules/vite/dist/node/cli.js:748:9)
Describe the bug
When building the Demo App with
@sveltejs/adapter-static
, I am getting an error aboutstrict
being undefined (Posted full error in logs)Reproduction
Here is a repro repo with a branch containing the minimal reproduction: https://github.com/CobyPear/hack-sveltekit-ssg/tree/adapter-error-repro
Steps to repro:
@sveltejs/adapter-auto
@sveltejs/adapter-static
npm run build
in the terminalExpected: Build succeeds (or yells at me about dynamic routes)
Actual: see error in Logs below
Logs
System Info
Severity
serious, but I can work around it
Additional Information
I was able to work around this by explicitly defining the option in the adapter, but this shouldn't be necessary to my understanding.
The text was updated successfully, but these errors were encountered: