Why does dayjs.extend(isBetween) throw "Uncaught ReferenceError: isBetween is not defined"
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.8k
- PR merge metrics
- No merged PRs in 30d
Description
Hopefully this will not be too hard to answer. I have:
<script src="/js/vendor/dayjs.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/dayjs/1.9.6/plugin/isBetween.js"></script> <script> dayjs.extend(isBetween); </script>It throws: "Uncaught ReferenceError: isBetween is not defined"
Why is isBetween undefined?
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 the browser script example in the issue and the documented plugin-loading usage for dayjs.extend(isBetween). Verify how the CDN-loaded isBetween plugin is expected to expose its entry point in a browser, then update the relevant documentation so the example works or clearly explains the required usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100