Crash React Native: Cannot convert undefined value to object
Open
- Dominant language
- JavaScript
- Stars
- 48.7k
- Forks
- 2.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I'm getting this error when I added week plugin `dayjs.extend(weekOfYear)` and run `dayjs().format('dddd')` (same as ddd, dd, MM, MMM, MMM)
```
//index.js file
import dayjs from 'dayjs';
dayjs.extend(weekOfYear);
dayjs.locale('en', { weekStart: 0 });
```
**Expected behavior**
Can use format() function as usual.
**Information**
- Day.js Version 1.11.10
- OS: IOS 16.4
- react-native: 0.72.4
Contributor guide
Assessment
This issue has not been assessed yet.