6

I have updated my project from angular 12 to angular 13 and I'm facing this error:

Error: node_modules/@types/ws/index.d.ts:328:18 - error TS2315: Type 'Server' is not generic.

328         server?: HTTPServer<V> | HTTPSServer<V> | undefined;
                     ~~~~~~~~~~~~~


Error: node_modules/@types/ws/index.d.ts:328:34 - error TS2315: Type 'Server' is not generic.

328         server?: HTTPServer<V> | HTTPSServer<V> | undefined;
                                     ~~~~~~~~~~~~~~

I tried installing npm i @types/ws with no success.

traynor
  • 5,490
  • 3
  • 13
  • 23

1 Answers1

20

Solution: npm install -f @types/ws@8.5.4