Cannot find name 'XMLDocument' when I build my project
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hi guys!
So, I am working on a nodejs typescript project presently, and I've encountered the following issue:

This happens whenever I try to build my project. I am using `"jsbarcode": "^3.11.6"`.
In doing a little bit of research, I noticed [this commit](https://github.com/lindell/JsBarcode/pull/342/commits/2b000f9af17ba29bf12a11915ef80dfa73c398c4), but I don't see where this definition for `XMLDocument` is imported from 🤔.
[This issue](https://github.com/lindell/JsBarcode/issues/311) seems related
Any ideas?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the build failure in a Node.js TypeScript project using jsbarcode 3.11.6, then compare the package declarations with the linked commit and related issue. Done means the project builds without the Cannot find name 'XMLDocument' error, with the affected declaration behavior covered if the repository has a relevant test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100