dayjs.extend is not a function
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
when we called the dayjs extend function its showing as not a function.
`import * as dayjs from 'dayjs';
import * as relativeTime from 'dayjs/plugin/relativeTime.js';
dayjs.extend(relativeTime);`

When we are changing import method as below showing error as
`import dayjs from 'dayjs'`

we tried to update the tsconfig.json with below properties. still facing the same issue.
`"esModuleInterop": true,
"allowSyntheticDefaultImports": true,`
**Information**
- Day.js Version [e.g. v1.11.13.]
- OS: [e.g. Windows]
- Browser [e.g. chrome 62]
- Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)]
Contributor guide
Assessment
This issue has not been assessed yet.