Já tentei fazer o mesmo que tinha sido mencionado em outro tópico mas não funcionou para mim. Dá o erro de que falta diversas dependências. Alguém consegue me ajudar com esse erro abaixo.
tsc
../../../../node_modules/@types/clean-css/index.d.ts:6:50 - error TS2792: Cannot find module 'source-map'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
6 import { RawSourceMap, SourceMapGenerator } from "source-map"; ~~~~~~~~~~~~
../../../../node_modules/@types/node/events.d.ts:112:43 - error TS2370: A rest parameter must be of an array type.
112 T[K] extends unknown[] ? (...args: T[K]) => void : never ~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:6:76 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
6 type _Request = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Request; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:7:77 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
7 type _Response = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Response; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:8:77 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
8 type _FormData = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").FormData; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:9:76 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
9 type _Headers = typeof globalThis extends { onmessage: any } ? {} : import("undici-types").Headers; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:11:14 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
11 : import("undici-types").RequestInit; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:13:14 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
13 : import("undici-types").ResponseInit; ~~~~~~~~~~~~~~
../../../../node_modules/@types/node/globals.d.ts:380:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
380 : typeof import("undici-types").Request; ~~~~~~~~~~~~~~