Closed Glogo closed 6 months ago
After further reviewing your dist folder the "types.js" file is empty, so probably some issue with the ts build and packaging?
It's related to const enum which are inlined in Javascript. The types.d.ts
file still retains these values, but it fails to import in Javascript because it doesn't import any varaibles. I'll switch back to regular enums for now, to avoid this problem.
@Glogo
What do you think about changing it to standard as const
to avoid compilation problems like this one?
What do you think about changing it to standard
as const
to avoid compilation problems like this one?
I don't have any preference regarding this, your change did the trick though, thanks
After updating to version 2.8.1 I'm getting error:
I am using it in Node.js v18.14.2 module without running typescript. Could it be related to the recent tsconfig changes in bysquare?