Skip to content

2.6.8 regression - malformed types block usage #5338

@benmccann

Description

@benmccann

Describe the bug

We can't upgrade SvelteKit to the latest Vite because we get this error:

│ ../../node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/index.d.ts(38,23): error TS7016: Could not find a declaration file for module 'ws'. 'node_modules/.pnpm/[email protected]/node_mod
│   Try `npm i --save-dev @types/ws` if it exists or add a new declaration (.d.ts) file containing `declare module 'ws';

Reproduction

git clone [email protected]:sveltejs/kit.git
cd kit
pnpm install
pnpm run check

System Info

Vite 2.6.8

Used Package Manager

pnpm

Logs

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    p4-importantViolate documented behavior or significantly improves performance (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions