Open davidyuk opened 3 months ago
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.
isolatedModules
To fix this problem would be best to export usual enums instead of const enum. Related articles:
const enum
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: