hyperformula icon indicating copy to clipboard operation
hyperformula copied to clipboard

[Bug]: Upgrade `chevrotain` dependency to fix `esm.run` import

Open malys opened this issue 4 months ago • 6 comments

Description

Hi, I try to import Hyperformula lib in my web app like that:

// See https://www.npmjs.com/package/hyperformula documentation.
import * as hyperformula from 'https://esm.run/hyperformula';

console.log(hyperformula)

and

"Uncaught SyntaxError: The requested module '/npm/[email protected]/+esm' does not provide an export named 'BaseRegExpVisitor'"

It seems there is a corruption of dep tree?

Video or screenshots

No response

Demo

https://www.jsdelivr.com/package/npm/hyperformula

HyperFormula version

3.0.1

Your framework

vanillaJS

Your environment

Chrome 138

malys avatar Aug 15 '25 16:08 malys

Did you try loading HyperFormula as described in our documentation?

sequba avatar Sep 01 '25 15:09 sequba

Hi, I need to load ESM library version of hyperformula to integrate iit Silverbullet.md @sequba

malys avatar Sep 05 '25 16:09 malys

I analyzed the issue. For esm.run to work, it needs all the dependencies and dependencies of dependencies to support the ESM standard, which [email protected] does not. This should be resolved when HyperFormula switches to the latest version of the chevrotain library.

I'm adding this issue to our backlog.

sequba avatar Sep 10 '25 13:09 sequba

Many thanks . I will wait the fix.

malys avatar Sep 10 '25 15:09 malys

Last question, any idea about bug fix date?

malys avatar Sep 15 '25 15:09 malys

Probably Q1 2026.

sequba avatar Sep 15 '25 19:09 sequba