harmony-one / sdk

Javascript SDK of Harmony protocol.
MIT License
92 stars 43 forks source link

ChainID enum being ambient const enums breaks react typescript production build #46

Closed denniswon closed 4 years ago

denniswon commented 4 years ago
$ 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