harmony-one/sdk

ChainID enum being ambient const enums breaks react typescript production build

denniswon opened this issue · 0 comments

$ react-scripts build
The following changes are being made to your tsconfig.json file:
  - compilerOptions.isolatedModules must be true (implementation limitation)

Creating an optimized production build...
Failed to compile.

/Users/dennis.won/go/src/github.com/harmony-one/swoop-interface/src/constants/index.ts
TypeScript error in /Users/dennis.won/go/src/github.com/harmony-one/swoop-interface/src/constants/index.ts(13,3):
Cannot access ambient const enums when the '--isolatedModules' flag is provided.  TS2748