You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the correct order to load these in? I want to use the AdvancedFormat plugin to display day ordinals but I can't figure out how to avoid the r.ordinal is not a function bug.
We are only using the AdvancedFormat plugin and getting the r.ordinal is not a function error. Doesn't state in the documentation that it requires any other plugins for using Do
Describe the bug
Loading plugins before and then loading the locale for
en
breaks the app.Expected behavior
Should work correctly without any error.
Information
Let's say we have code like this
It breaks with an error
d.ordinal
is not a function. It is because there is noordinal
property inen.js
file. More specifically this function https://github.com/iamkun/dayjs/blob/dev/src/plugin/advancedFormat/index.js#L6 should be moved toen.js
file.Repro - https://codesandbox.io/s/elegant-christian-hbsr7?file=/src/index.js
Happy to submit a PR.
The text was updated successfully, but these errors were encountered: