-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Installing the adapter in a fresh demo project with pnpm and running pnpm build throws the following error:
> Using adapter-azure-swa
✘ [ERROR] Could not resolve "set-cookie-parser"
.svelte-kit/azure-tmp/headers.js:1:35:
1 │ import * as set_cookie_parser from 'set-cookie-parser';
╵ ~~~~~~~~~~~~~~~~~~~
You can mark the path "set-cookie-parser" as external to exclude it from the
bundle, which will remove this error.
error during build:
Error: Build failed with 1 error:
.svelte-kit/azure-tmp/headers.js:1:35: ERROR: Could not resolve "set-cookie-parser"
at failureErrorWithLog (/Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1575:15)
at /Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1033:28
at /Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:978:67
at buildResponseToResult (/Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1031:7)
at /Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:1143:14
at responseCallbacks.<computed> (/Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:680:9)
at handleIncomingPacket (/Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:735:9)
at Socket.readFromStdout (/Users/grich/code/throwaway/pnpm-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:656:7)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)
ELIFECYCLE Command failed with exit code 1.
More context: #118
The official Netlify adapter uses the same set-cookie-parser dependency and builds successfully, so I'm not sure what we're doing differently.
Metadata
Metadata
Assignees
Labels
No labels