You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying this : import { Anchor, columbus5, AddressProviderFromJson, MARKET_DENOMS, OperationGasParameters } from '@anchor-protocol/anchor.js'
which has thrown me this error:
SyntaxError: Named export 'OperationGasParameters' not found. The requested module '@anchor-protocol/anchor.js' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@anchor-protocol/anchor.js';
const { Anchor, columbus5, AddressProviderFromJson, MARKET_DENOMS, OperationGasParameters } = pkg;
Any idea why it's happening?
The text was updated successfully, but these errors were encountered:
I was trying this :
import { Anchor, columbus5, AddressProviderFromJson, MARKET_DENOMS, OperationGasParameters } from '@anchor-protocol/anchor.js'
which has thrown me this error:
Any idea why it's happening?
The text was updated successfully, but these errors were encountered: