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
Unlike other adapters in SvelteKit v2, adapter-node requires user review. change-log
breaking: remove polyfill option. fetch APIs will now always come from the platform being used. File and crypto APIs will be polyfilled if not available (sveltejs/kit#11172)
Currently,
Neither the migration log nor the documentation informs about this change.
Neither svelte-check nor vite build shows an error regarding the option.
Only when the svelte.config.js file is opened, the error can be seen.
Object literal may only specify known properties, and 'polyfill' does not exist in type 'AdapterOptions'.ts(2353)
Reproduction
pnpm dlx svelte-migrate@latest sveltekit-2
Logs
This will update files in the current directory
If you're inside a monorepo, run this in individual project directories rather than the workspace root.✔ Continue? … yes✔ Which folders should be migrated? › srcUpdated @sveltejs/kit to ^2.0.0 Updated @sveltejs/adapter-node to ^2.0.0 Updated vite to ^5.0.0 Updated vitest to ^1.0.0 Added @sveltejs/vite-plugin-svelte version ^3.0.0 (vite-plugin-svelte is a peer dependency of SvelteKit now)Changed `vitePreprocess` import: https://kit.svelte.dev/docs/migrating-to-sveltekit-2#vitepreprocess-is-no-longer-exported-from-sveltejs-kit-viteRemoved `throw` from redirect/error functions: https://kit.svelte.dev/docs/migrating-to-sveltekit-2#redirect-and-error-are-no-longer-thrown-by-youSearch codebase for `@migration` and manually add the `path` option to `cookies.set/delete/serialize` calls: https://kit.svelte.dev/docs/migrating-to-sveltekit-2#path-is-now-a-required-option-for-cookies✔ Your project has been migratedRecommended next steps: 1: Run npm install (or the corresponding installation command of your package manager) 2: git commit -m "migration to SvelteKit 2" 3: Review the migration guide at https://kit.svelte.dev/docs/migrating-to-sveltekit-2 4: Read the updated docs at https://kit.svelte.dev/docsRun git diff to review changes.
Describe the bug
Unlike other adapters in SvelteKit v2,
adapter-node
requires user review. change-logCurrently,
svelte-check
norvite build
shows an error regarding the option.svelte.config.js
file is opened, the error can be seen.Reproduction
Logs
System Info
Severity
annoyance
Additional Information
Possible solutions are (from most viable)
/* @migration task: */
comment if the polyfill key exists.The text was updated successfully, but these errors were encountered: