lindell / lindell/JsBarcode

Module export problem

Open
#142 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

In order to get a more small size of bundle file, I include the original JsBarcode library from `src/JsBarcode.js`, but get the following error:

```
🚨 'default' is not exported by node_modules\jsbar
https://github.com/rollup/rollup/wiki/Troubleshootin
dule
src\index.js (1:7)
1: import JsBarcode from 'jsbarcode/src/JsBarcode';
```

Contributor guide

Open the contributing guide

Research direction

Start with src/index.js and src/JsBarcode.js, then inspect how the Rollup build resolves the JsBarcode import and export. Reproduce the reported build error and confirm that the source import works while producing the intended smaller bundle.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rollup
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.