Page 1 of 1
ESM Import Stimulsoft Reports.JS
Posted: Mon Nov 04, 2024 10:49 am
by itk
We need to import the Stimulus Report Engine JS into a pure ESM (ECMAScript Module) project.
Could you provide some examples of how to import the engine?
Thank You
A.
Re: ESM Import Stimulsoft Reports.JS
Posted: Mon Nov 04, 2024 12:49 pm
by Lech Kulikowski
Hello,
Please check the following samples:
https://github.com/stimulsoft/Samples-R ... or-Node.js
Thank you.
Re: ESM Import Stimulsoft Reports.JS
Posted: Mon Nov 04, 2024 1:36 pm
by itk
Hello,
we know those samples but all examples are using the require() statement.
In ESM based Projects a require is not possible anymore.
How to use the esm import statement instead.
Thank you.
Re: ESM Import Stimulsoft Reports.JS
Posted: Wed Nov 06, 2024 3:14 am
by celemtine
itk wrote: ↑Mon Nov 04, 2024 1:36 pm
Hello,
we know those samples but all examples are using the require() statement.
In ESM based Projects a require is not possible anymore.
How to use the esm import statement instead.
Thank you.
Hi
sex dolls cheap
has this problem been solved? I am experiencing the same problem.
I tried using “import” instead of “require()”, using syntax like “import moduleName from 'module '“ or ‘import { functionName } from ’module'” syntax to specify the export. But none of them work, is there any other way? Thanks in advance!

Re: ESM Import Stimulsoft Reports.JS
Posted: Wed Nov 06, 2024 8:34 am
by Lech Kulikowski
Hello,
Unfortunately, not yet, but we are working on this functionality.
Thank you.
Re: ESM Import Stimulsoft Reports.JS
Posted: Wed Nov 06, 2024 10:01 am
by itk
Hi
Could you please let us know when we can expect a solution? Resolving this issue is essential for us to continue using your library. It was originally reported in 2020.
For reference, please also see this post:
viewtopic.php?t=58886
Thank you!
Re: ESM Import Stimulsoft Reports.JS
Posted: Wed Nov 06, 2024 10:26 pm
by Lech Kulikowski
Hello,
Please send us your request with a detailed description on
support@stimulsoft.com.
Thank you.