lindell / lindell/JsBarcode

Cannot find name 'XMLDocument' when I build my project

Open
#446 0 comments 0 reactions 0 assignees View on GitHub

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:
![image](https://github.com/lindell/JsBarcode/assets/32384493/c2f08633-3289-4257-90ea-44fe533c0665)

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.