osmosis-labs / osmojs

OsmosJS makes it easy to compose and broadcast Osmosis and Cosmos messages
https://cosmology.zone/products/osmojs
Apache License 2.0
63 stars 32 forks source link

import * as Long from 'long'; #18

Closed rixhy-cyd closed 1 year ago

rixhy-cyd commented 1 year ago
Screenshot 2022-10-13 at 4 36 58 PM

@pyramation still facing issue for the long import

pyramation commented 1 year ago

you need to use the esModuleInterop flag in your tsconfig

look at osmojs's config for reference: https://github.com/osmosis-labs/osmojs/blob/7caf01bf477ed38e19bd63ee010bd8ba45b1b186/packages/osmojs/tsconfig.json#L7

rixhy-cyd commented 1 year ago

you need to use the esModuleInterop flag in your tsconfig

look at osmojs's config for reference:

https://github.com/osmosis-labs/osmojs/blob/7caf01bf477ed38e19bd63ee010bd8ba45b1b186/packages/osmojs/tsconfig.json#L7 I have this configuration in my tsconfig but still it doesn't work