Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project Status #50

Open
net-tech opened this issue Aug 30, 2023 · 3 comments
Open

Project Status #50

net-tech opened this issue Aug 30, 2023 · 3 comments

Comments

@net-tech
Copy link

Hi @TobiasNickel, is tXml still being maintained?

@TobiasNickel
Copy link
Owner

I find to little time moving it forward to an esm module. it is just frustrating how node.js made common.js and esm so incompatible that there has never been a solution i liked.

otherwise the parser works fine.

@curiousdannii
Copy link

I was able to get it to work using

import * as txml from 'txml/dist/txml.mjs'

And if you use Typescript, then also set this in tsconfig.json

{
    "compilerOptions": {
        "paths": {
            "txml/dist/txml.mjs": ["./node_modules/txml/dist/txml.d.ts"]
        }
    }
}

Obviously having to manually specify where the types file is isn't ideal, but at least it works. :)

@MichaelKapustey
Copy link

Thank you @curiousdannii for this. Saved my day.
For me it worked with

"paths": {
    "txml": ["./node_modules/txml/dist/index.d.ts"]
}

and

import { simplify, parse } from "txml";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants