Skip to content

TS2339: Property does not exist on type #2415

@liuxingbaoyu

Description

@liuxingbaoyu

Steps to reproduce

1.git clone
2.yarn
3.yarn tsgo -b
babel/babel#17411

Sorry. I tried to do a minimal reproduction, but it failed.
It works fine when I access the property within the same file, but it throws an error in other packages.

Behavior with [email protected]

no errors

Behavior with tsgo

packages/babel-core/src/transformation/index.ts:112:30 - error TS2339: Property 'visitors' does not exist on type '{ <S>(parent: Node, opts: TraverseOptions<S>, scope: Scope, state: S, parentPath?: NodePath_Final, visitSelf?: boolean): void; (parent: Node, opts: TraverseOptions<...>, scope?: Scope, state?: any, parentPath?: NodePath_Final, visitSelf?: boolean): void; }'.

112     const visitor = traverse.visitors.merge(

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions