Olá, boa tarde!
Ao executar o comando: "npm run compile", meu terminal está me retornando um erro totalmente diferente do professor, meu erro segue abaixo:
../../../nodemodules/@types/babel_core/index.d.ts:12:31 - error TS2792: Cannot find module '@babel/parser'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
12 import { ParserOptions } from '@babel/parser';
~~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_core/index.d.ts:15:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
15 import * as t from '@babel/types';
~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_generator/index.d.ts:10:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
10 import * as t from '@babel/types';
~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_template/index.d.ts:9:31 - error TS2792: Cannot find module '@babel/parser'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
9 import { ParserOptions } from '@babel/parser';
~~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_template/index.d.ts:10:48 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
10 import { Expression, Program, Statement } from '@babel/types';
~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:13:20 - error TS2792: Cannot find module '@babel/types'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
13 import * as t from '@babel/types';
~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:63:18 - error TS2411: Property 'blacklist' of type 'any[]' is not assignable to string index type 'VisitNode<S, any> & VisitNode<S, any>'.
63 export interface TraverseOptions<S = Node> extends Visitor {
~~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:63:18 - error TS2411: Property 'denylist' of type 'any[]' is not assignable to string index type 'VisitNode<S, any> & VisitNode<S, any>'.
63 export interface TraverseOptions<S = Node> extends Visitor {
~~~~~~~~~~~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:64:5 - error TS2411: Property 'scope' of type 'Scope' is not assignable to string index type 'VisitNode<S, any> & VisitNode<S, any>'.
64 scope?: Scope | undefined;
~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:65:5 - error TS2411: Property 'noScope' of type 'boolean' is not assignable to string index type 'VisitNode<S, any> & VisitNode<S, any>'.
65 noScope?: boolean | undefined;
~~~~~~~
../../../nodemodules/@types/babel_traverse/index.d.ts:248:69 - error TS2536: Type '"type"' cannot be used to index type 'T'.
248 type: T extends null | undefined ? undefined : T extends Node ? T['type'] : string | undefined;
~
Found 11 errors.
Alguém poderia me ajudar, por favor?