Module export problem
- 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
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