Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created August 17, 2019 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ELLIOTTCABLE/8a47990f456274ab05a1ba2ab7752b49 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/8a47990f456274ab05a1ba2ab7752b49 to your computer and use it in GitHub Desktop.
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