You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After that, i added the following code to src/index.ts:
import{create}from"xmlbuilder2";import{XMLBuilder}from"xmlbuilder2/lib/interfaces";functionmain(){constbuilder: XMLBuilder=create().ele('some-element');console.log('i created the xml',builder.end({prettyPrint: true}))}main()
After that, I run tsc in the project root, and... it worked! So I did some digging. Turns out, the tsconfig.json which was autogenerated containg the flag skipLibCheck: true on by default. When I added the flag to my original project, it compiled!
My problem is practically solved, however I'll leave the issue open in case you want to dig deeper.
Describe the bug
When i try to compile my code using tsc i get the following compile error. When i run the code with ts-node, it runs fine.
To Reproduce
Use the xml builder
Expected behavior
The code compiles
Version:
The text was updated successfully, but these errors were encountered: