Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

import ES module

Open
#807 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
graphql, typescript

Research direction

The issue names the guide, yarn graphclient build, and the ../.graphclient import; reproduce both the JavaScript and .mjs cases from that guide and inspect the generated output. Done means the documented import works without either the module or directory-import error.

Written by the indexing model from the issue text.

Description

Following the guide, after successful yarn graphclient build I get stuck at import { execute } from '../.graphclient' .

  • If running as JS : SyntaxError: Cannot use import statement outside a module
  • If as .mjs : Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import './graphclient' is not supported resolving ES modules

Screenshot 2024-08-29 at 08 47 20

How should it be correctly?

Dominant language
TypeScript
Stars
186
Forks
49
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from graphprotocol/graph-client

All issues in graphprotocol/graph-client

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.