[question] import Plot in Node.js ERR_REQUIRE_ESM
dawadam opened this issue · 0 comments
dawadam commented
Hi, thanks for the great library.
Is it possible to use it only with Node JS?
I try to import like this:
import Plot from '@observablehq/plot'
But the error is:
Error [ERR_REQUIRE_ESM]: require() of ES Module [...] not supported.
Instead change the require of [...] to a dynamic import() which is available in all CommonJS modules.
Why is normal import not working?