onflow / onflow/fcl-js

[BUG] Error for accessNodes.api not defined in config points to page that does not exist:

Open
#1,995 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
TypeScript
Stars
333
Forks
136
PR merge metrics
No merged PRs in 30d

Description

Current Behavior

I've tried to shoehorn @onflow/fcl into a Node script to test something. I've received an error that:

Error: INVARIANT query(opts) -- Required value for "accessNode.api" not defined in config. See: https://github.com/onflow/flow-js-sdk/blob/master/packages/fcl/src/exec/query.md#configuration

The linked page does not exist.

Expected Behavior

The linked page should exist.

Steps To Reproduce

Repro not needed, the link is hardcoded here:

https://github.com/onflow/fcl-js/blob/3f066f9034e243922c0085d126e81e0b85bf4a8a/packages/fcl-core/src/exec/utils/pre.js#L22

Environment
  • OS:
  • Node:
  • npm:
What are you currently working on that this is blocking?

No response

Contributor guide

Open the contributing guide

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.

Research direction

Inspect the hardcoded link in packages/fcl-core/src/exec/utils/pre.js at line 22 and check whether its target resolves. Update the reference so it points to an existing configuration page, then verify the URL works.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.