Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
typescript babel errors
node_modules/@types/babel__core/index.d.ts:13:20 - error TS2307: Cannot find module '@babel/types'.
13 import * as t from "@babel/types";
~~~~~~~~~~~~~~
node_modules/@types/babel__core/index.d.ts:14:31 - error TS2307: Cannot find module '@babel/parser'.
14 import { ParserOptions } from "@babel/parser";
~~~~~~~~~~~~~~~
node_modules/@types/babel__generator/index.d.ts:9:20 - error TS2307: Cannot find module '@babel/types'.
9 import * as t from "@babel/types";
~~~~~~~~~~~~~~
node_modules/@types/babel__template/index.d.ts:9:31 - error TS2307: Cannot find module '@babel/parser'.
9 import { ParserOptions } from "@babel/parser";
~~~~~~~~~~~~~~~
node_modules/@types/babel__template/index.d.ts:10:54 - error TS2307: Cannot find module '@babel/types'.
10 import { Expression, File, Program, Statement } from "@babel/types";
~~~~~~~~~~~~~~
node_modules/@types/babel__traverse/index.d.ts:10:20 - error TS2307: Cannot find module '@babel/types'.
10 import * as t from "@babel/types";
~~~~~~~~~~~~~~
node_modules/@types/babel__traverse/index.d.ts:30:5 - error TS2411: Property 'scope' of type 'Scope' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeObject<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>)'.
30 scope?: Scope;
~~~~~
node_modules/@types/babel__traverse/index.d.ts:31:5 - error TS2411: Property 'noScope' of type 'boolean' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeObject<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>)'.
31 noScope?: boolean;
~~~~~~~
Found 8 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.