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 typescript@5.9

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions