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
Uncaught TypeError: Cannot read property 'relativeTime' of undefined
at fromTo (index.js:21)
at Dayjs.push../node_modules/dayjs/esm/plugin/relativeTime/index.js.__webpack_exports__.default.proto.from (index.js:89)
at Module../src/app/core/utils/dayjs.ts (dayjs.ts:9)
While trying to run the code:
import _dayjs from 'dayjs/esm';
import relativeTime from 'dayjs/esm/plugin/relativeTime';
import 'dayjs/locale/en';
import 'dayjs/locale/he';
_dayjs.locale('he');
_dayjs.extend(relativeTime);
console.log(_dayjs().from(_dayjs('1990'))); // <-- Fails
Running "dayjs": "^1.8.6"
The text was updated successfully, but these errors were encountered:
Getting the following error:
While trying to run the code:
Running
"dayjs": "^1.8.6"
The text was updated successfully, but these errors were encountered: