How should this library be imported when using es modules? #92
Unanswered
alexbjorlig
asked this question in
Q&A
Replies: 1 comment
-
Your {
"dependencies": {
"xmlbuilder2": "2.4.1"
},
"type": "module"
} Follow by a import { create } from "xmlbuilder2";
const str = create({ version: "1.0" }).ele("root").end();
console.log(str); Here is a minimum sandbox with the above: https://codesandbox.io/s/brave-spence-n1cor?file=/package.json Your error message seems to indicate that |
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.
-
I seem to get the error:
when importing with:
Beta Was this translation helpful? Give feedback.
All reactions