Open bart-opplane opened 3 years ago
Const enums (like the ones in https://github.com/brianc/node-postgres/blob/master/packages/pg-protocol/src/messages.ts) are a feature specific to Typescript projects built with tsc compiler. Builds that do not use tsc and only compile explicitly imported files need the --isolatedModules flag enabled, which does not suppport const enums
tsc
--isolatedModules
const enum
Please replace const enums with normal enums.
Const enums (like the ones in https://github.com/brianc/node-postgres/blob/master/packages/pg-protocol/src/messages.ts) are a feature specific to Typescript projects built with
tsc
compiler. Builds that do not usetsc
and only compile explicitly imported files need the--isolatedModules
flag enabled, which does not suppportconst enum
sPlease replace
const enum
s with normal enums.