handsontable / handsontable/hyperformula

[Bug]: Error occurs if the formula contains a reference to a range that contains a reference to a range

Open
#1,479 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Impact: Low
Dominant language
TypeScript
Stars
2.8k
Forks
171
Avg merge
1d 22h
Merged PRs (30d)
7

Description

Description

Error occurs if the formula contains a reference to a range that contains a reference to a range
Error: Value of the formula cell is not computed.

// expected result in all cases: 1
const HyperFormula = require('hyperformula');

const options = {
  licenseKey: 'gpl-v3',
};

let hf = HyperFormula.HyperFormula.buildFromArray(
  [
    [
      1,
      // '=A1+0', // Success
      '=A:A+0', // BUG: Error: Value of the formula cell is not computed.
      '={B:B}',
    ],
  ],
  options
);
Video or screenshots

No response

Demo

https://stackblitz.com/edit/stackblitz-starters-ovw2zlhv?file=index.js

HyperFormula version

2.7.1 , 3.0.0 (develop)

Your framework

No response

Your environment

node v22.10.0 , v18.20.3

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

Start with the buildFromArray entry point and reproduce the issue using the StackBlitz demo or the provided Node.js example. Compare the A1 reference case with the A:A and {B:B} cases; done means all formulas return 1 without the “Value of the formula cell is not computed” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.