Duplicate function implementation in [plugin angular-compiler]

1 day ago 3
ARTICLE AD BOX

I'm on a fresh install of an angular project and I'm trying to ng serve it after npm i in the folder. I get this error straight up:

X [ERROR] TS2393: Duplicate function implementation. [plugin angular-compiler] node_modules/typescript/lib/lib.dom.d.ts:28803:17: 28803 │ declare function stop(): void;

This is in a node_modules folder some type definition file so I am not sure if I want to poke around there. How do I go about fixing this error please? I already cleaned cache of npm and reinstalled packages.

My angular version: 19.2.x

Typescript version: 5.8.3

Read Entire Article