Trouble using Plot library in a CommonJS environment #2042
Unanswered
AlbertIspiryan-dev
asked this question in
Q&A
Replies: 2 comments
-
For the context, I want to use the d3+plot packages on server side of node application to generate a SVG chart and combine it with the JSDOM. Then SVG should be placed in my PDF. As a pdf generator package I'm using If you can suggest any solution or share ideas with me on how all of the packages can work together, any help much appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please read this guide on ES modules: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c You probably need to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use the Plot library in a Node.js project, but I'm encountering issues due to the library being distributed as an ES module.
Here's the relevant part of my
tsconfig.json
:The error is:
Usage:
Beta Was this translation helpful? Give feedback.
All reactions