Anchor-Protocol / Anchor-Protocol/anchor.js

SyntaxError: Named export 'OperationGasParameters' not found.

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
46
Forks
38
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files, tests, or entry points beyond the import from @anchor-protocol/anchor.js. Start by reproducing that import and inspecting the package's published module format and exports. Done means identifying why OperationGasParameters is unavailable as a named export and documenting the supported behavior or required package change.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.