Skip to content

prettier-plugin-hermes-parser: error with prettier when declare namespace #1546

Open
@ayroblu

Description

@ayroblu

Bug Description

Prettier fails if the code contains declare namespace

[error] flow-typed/zipkin_vx.x.x.js: Error: Missing visitor keys for 'DeclareNamespace'.
[error]     at getVisitorKeys3 (~/web/node_modules/prettier-plugin-hermes-parser/dist/third-party/internal-prettier-v3/plugins/estree.js:1236:29)
[error]     at ~/web/node_modules/prettier-plugin-hermes-parser/dist/third-party/internal-prettier-v3/ast-to-doc.js:1162:44
...

Library module:

declare module 'zipkin' {
  declare namespace sampler {
    declare const neverSample: () => boolean;
  }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions