NUKnightLab / NUKnightLab/TimelineJS3
Less error thrown when using Timeline as an ES6 Module
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 3.2k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
Description
Version used: 3.9.3
The file throwing the error has only one line, importing the Timeline module:
The following error is thrown when importing the timeline script:
When importing the Timeline as a module I wouldn't expect styles to be loaded as well, since the documentation recommends loading the css separately. Is it possible to remove the less import from this module?
/@knight-lab/timelinejs/src/js/index.js
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
Start with @knight-lab/timelinejs/src/js/index.js, which the issue identifies as importing the Less stylesheet alongside the Timeline module. Check the module entry point and the documentation's separate CSS-loading guidance. Done means importing Timeline as an ES6 module no longer attempts to load styles through that entry point.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100