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'; #15

Closed rixhy-cyd closed 1 year ago

rixhy-cyd commented 1 year ago

This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.

import * as Long from 'long';

pyramation commented 1 year ago

https://github.com/osmosis-labs/osmojs/blob/d0bf0963d4a7ccbbc5b1a3e98617107a8683f52b/packages/osmojs/tsconfig.json#L7

cothi commented 1 year ago

It was not resolved in that way.

pyramation commented 1 year ago

how else can it be resolved? If you have any pointers I'm happy to take a look, but for osmojs it was resolved this way.

Also, this may be an issue w the long library itself, which we are looking to deprecate soon 🙏🏻