lindell / lindell/JsBarcode

Script Embedding doesnt work

Open
#443 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

I am trying to embed this script into my html offline.

When I use this it works:

but when I use this code it doesn't:

where the .js file is in the same folder as the .html file.

The debugging in Microsoft Edge presented us with the following error (see attached)
[Presentation1.pdf](https://github.com/lindell/JsBarcode/files/14025098/Presentation1.pdf)

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

Start with the HTML page and the local JsBarcode.all.min.js reference, then compare the browser's error in the attached Presentation1.pdf with the working CDN reference. Done means identifying why the same-folder script is not loading offline and documenting or reproducing a clear fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.