Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ayroblu opened this issue Oct 20, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ayroblu
Copy link

ayroblu commented Oct 20, 2024

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;
  }
}
@ayroblu ayroblu added the bug Something isn't working label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants