Skip to content

[Bug] Can't use const enums when verbatimModuleSyntax is enabled #83

@kyranet

Description

@kyranet

Search before asking

  • I searched in the issues and found nothing similar.

Image version

1.8.0

System version

Windows 11 23H2 22631.3085

Node.js version

20.7.0

Minimal reproduce step

Set either verbatimModuleSyntax or isolatedModules to true, then use any of the const enums such as ResizeFit.

What did you expect to see?

The code works just fine.

What did you see instead?

Code_blIOzddlfy

Anything else?

I checked the issues in the @napi-rs/napi-rs repository, and I found this issue which may be relevant: napi-rs/napi-rs#1689

However, I'm unsure where would I place the --no-const-enum option, and can't test my local changes because libaom-sys can't find nasm despite being installed.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions