You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obeying the instructions and explicitly making them type imports solves the problem:
-import { ASTNode, Type, AnyType, Field } from "./lib/types";+import { ASTNode, type Type, AnyType, Field } from "./lib/types";-import { NodePath } from "./lib/node-path";+import { type NodePath } from "./lib/node-path";-import { builders } from "./gen/builders";+import { type builders } from "./gen/builders";
The text was updated successfully, but these errors were encountered:
When upgrading to TypeScript 5.4+, importing from
ast-types
leads to type errors.Reproduction:
yarn install
yarn tsc:full
Result:
Obeying the instructions and explicitly making them type imports solves the problem:
The text was updated successfully, but these errors were encountered: