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
few days ago it was working fine, for now after npm install its not working and i have error like below
tested on date-fns-tz versions
1.3.8
2.0.0
sample import
import { utcToZonedTime, zonedTimeToUtc } from 'date-fns-tz';
stacktrace
./node_modules/date-fns-tz/format/index.js:8:36-71 - Error: Module not found: Error: Package path ./format/index.js is not exported from package node_modules/date-fns (see exports field in node_modules/date-fns/package.json)
./node_modules/date-fns-tz/formatInTimeZone/index.js:8:36-81 - Error: Module not found: Error: Package path ./_lib/cloneObject/index.js is not exported from package node_modules/date-fns (see exports field in node_modules/date-fns/package.json)
./node_modules/date-fns-tz/toDate/index.js:8:36-79 - Error: Module not found: Error: Package path ./_lib/toInteger/index.js is not exported from package node_modules/date-fns (see exports field in node_modules/date-fns/package.json)
./node_modules/date-fns-tz/toDate/index.js:10:37-102 - Error: Module not found: Error: Package path ./_lib/getTimezoneOffsetInMilliseconds/index.js is not exported from package node_modules/date-fns (see exports field in node_modules/date-fns/package.json)
./node_modules/date-fns-tz/zonedTimeToUtc/index.js:8:36-81 - Error: Module not found: Error: Package path ./_lib/cloneObject/index.js is not exported from package node_modules/date-fns (see exports field in node_modules/date-fns/package.json)
Error: node_modules/date-fns/index.d.ts:243:1 - error TS1383: Only named exports may use 'export type'.
243 export type * from "./types.js";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:9:12 - error TS2694: Namespace 'Intl' has no exported member 'UnicodeBCP47LocaleIdentifier'.
9 | Intl.UnicodeBCP47LocaleIdentifier
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:10:12 - error TS2694: Namespace 'Intl' has no exported member 'UnicodeBCP47LocaleIdentifier'.
10 | Intl.UnicodeBCP47LocaleIdentifier[];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:12:24 - error TS2694: Namespace 'Intl' has no exported member 'RelativeTimeFormatLocaleMatcher'.
12 localeMatcher?: Intl.RelativeTimeFormatLocaleMatcher;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:14:18 - error TS2694: Namespace 'Intl' has no exported member 'RelativeTimeFormatNumeric'.
14 numeric?: Intl.RelativeTimeFormatNumeric;
~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/intlFormatDistance.d.ts:16:16 - error TS2694: Namespace 'Intl' has no exported member 'RelativeTimeFormatStyle'.
16 style?: Intl.RelativeTimeFormatStyle;
~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/types.d.ts:3m2:1 - error TS1383: Only named exports may use 'export type'.
2 export type * from "./locale/types.js";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: node_modules/date-fns/types.d.ts:3:1 - error TS1383: Only named exports may use 'export type'.
3 export type * from "./fp/types.js";
The text was updated successfully, but these errors were encountered:
few days ago it was working fine, for now after npm install its not working and i have error like below
tested on date-fns-tz versions
sample import
import { utcToZonedTime, zonedTimeToUtc } from 'date-fns-tz';
stacktrace
The text was updated successfully, but these errors were encountered: