We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
isolatedModules
import { Algorithm } from '@node-rs/argon2'; console.log(Algorithm.Argon2d);
when I'm running tsc, it fails with
tsc
src/index.ts:2:13 - error TS2748: Cannot access ambient const enums when 'isolatedModules' is enabled.
I have isolatedModules switched on because I'm using Babel to compile my project.
To fix this problem would be best to export usual enums instead of const enum. Related articles:
const enum
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when I'm running
tsc
, it fails withI have
isolatedModules
switched on because I'm using Babel to compile my project.To fix this problem would be best to export usual enums instead of
const enum
. Related articles:The text was updated successfully, but these errors were encountered: