Olá ao executar o comando 'npm run compile' no terminal, é apresentado o seguinte erro: PS: Já reistalei tudo e não resolveu.
"
alurabank@1.0.0 compile tsc
node_modules/@types/node/ts4.8/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/ts4.8/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/ts4.8/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/ts4.8/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/ts4.8/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/ts4.8/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/ts4.8/globals.d.ts:354: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?
354 : typeof import("undici-types").Request; ~~~~~~~~~~~~~~
node_modules/@types/node/ts4.8/globals.d.ts:363: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?
363 : typeof import("undici-types").Response; ~~~~~~~~~~~~~~
node_modules/@types/node/ts4.8/globals.d.ts:370: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?
370 : typeof import("undici-types").FormData; ~~~~~~~~~~~~~~
node_modules/@types/node/ts4.8/globals.d.ts:377: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?
377 : typeof import("undici-types").Headers; ~~~~~~~~~~~~~~
Found 10 errors."