Skip to content

@netlify/functions type checking error with skipLibCheck turned off #302

@teemingc

Description

@teemingc

When importing a type from the @netlify/functions package, TypeScript complains about the @netlify/node-cookies module not being found.

~/git/sveltejs/kit/packages/adapter-netlify fix-types*
❯ pnpm check

> @sveltejs/[email protected] check /home/chewteeming/git/sveltejs/kit/packages/adapter-netlify
> tsc

../../node_modules/.pnpm/@[email protected]/node_modules/@netlify/serverless-functions-api/dist/cookie_store.d.ts:1:24 - error TS2307: Cannot find module '@netlify/node-cookies' or its corresponding type declarations.

1 import { Cookie } from '@netlify/node-cookies';
                         ~~~~~~~~~~~~~~~~~~~~~~~


Found 1 error in ../../node_modules/.pnpm/@[email protected]/node_modules/@netlify/serverless-functions-api/dist/cookie_store.d.ts:1

 ELIFECYCLE  Command failed with exit code 2.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions