iamkun / iamkun/dayjs

Why does dayjs.extend(isBetween) throw "Uncaught ReferenceError: isBetween is not defined"

Open
#1,210 12 comments 0 reactions 0 assignees View on GitHub

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.