TS 오류[TS2792]
../../../../../node_modules/@types/babel__core/index.d.ts:2:31 - error TS2792: Cannot find module '@babel/parser'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2 import { ParserOptions } from "@babel/parser";
~~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__core/index.d.ts:5:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
5 import * as t from "@babel/types";
~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__core/index.d.ts:10:52 - error TS2792: Cannot find module '@babel/parser'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
10 export type ParseResult = ReturnType<typeof import("@babel/parser").parse>;
~~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__generator/index.d.ts:1:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
1 import * as t from "@babel/types";
~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__template/index.d.ts:1:31 - error TS2792: Cannot find module '@babel/parser'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
1 import { ParserOptions } from "@babel/parser";
~~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__template/index.d.ts:2:48 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
2 import { Expression, Program, Statement } from "@babel/types";
~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__traverse/index.d.ts:1:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
1 import * as t from "@babel/types";
~~~~~~~~~~~~~~
../../../../../node_modules/@types/babel__traverse/index.d.ts:361:28 - error TS2536: Type '"type"' cannot be used to index type 'T'.
361 type: T extends Node ? T["type"] : T extends null | undefined ? undefined : Node["type"] | undefined;
~~~~~~~~~
../../../../../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 'nodenext', 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 'nodenext', 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 'nodenext', 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 'nodenext', 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 'nodenext', 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 'nodenext', or to add aliases to the 'paths' option?
13 : import("undici-types").ResponseInit;
~~~~~~~~~~~~~~
../../../../../node_modules/@types/node/globals.d.ts:354:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
354 : typeof import("undici-types").Request;
~~~~~~~~~~~~~~
../../../../../node_modules/@types/node/globals.d.ts:363:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
363 : typeof import("undici-types").Response;
~~~~~~~~~~~~~~
../../../../../node_modules/@types/node/globals.d.ts:370:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
370 : typeof import("undici-types").FormData;
~~~~~~~~~~~~~~
../../../../../node_modules/@types/node/globals.d.ts:377:25 - error TS2792: Cannot find module 'undici-types'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
377 : typeof import("undici-types").Headers;
~~~~~~~~~~~~~~
Found 18 errors in 5 files.
Errors Files
3 ../../../../../node_modules/@types/babel__core/index.d.ts:2
1 ../../../../../node_modules/@types/babel__generator/index.d.ts:1
2 ../../../../../node_modules/@types/babel__template/index.d.ts:1
2 ../../../../../node_modules/@types/babel__traverse/index.d.ts:1
10 ../../../../../node_modules/@types/node/globals.d.ts:6
해결 =>
{
"compilerOptions": {
"moduleResolution": "node",
"target": "ES2016",
"noEmitOnError": true,
"strict": true,
}
}
"moduleResolution": "node" 이거를 추가해주면 된다.
참고자료