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
node_modules\date-fns-tz\esm\formatInTimeZone\index.js depends on 'date-fns/_lib/cloneObject/index.js'. CommonJS or AMD dependencies can cause optimization bailouts in angular project
#193
Open
vamshi-rafcos opened this issue
Jul 16, 2022
· 3 comments
i am using date-fns and also for time zones date-fns-tz.
But when using formatInTimeZone method , angular giving CommonJS or AMD dependencies can cause optimization bailouts warning as depends on date-fns/cloneObject.
i am importing like using suggestion given by date-fn-tz import formatInTimeZone from 'date-fns-tz/esm/formatInTimeZone';
but other methods in date-fns-tz working fine like utcToZonedTime,toDate,it doesn't giving any warnings
angular@14
node@16.15
The text was updated successfully, but these errors were encountered:
i am using date-fns and also for time zones date-fns-tz.
But when using formatInTimeZone method , angular giving CommonJS or AMD dependencies can cause optimization bailouts warning as depends on date-fns/cloneObject.
i am importing like using suggestion given by date-fn-tz
import formatInTimeZone from 'date-fns-tz/esm/formatInTimeZone';
but other methods in date-fns-tz working fine like
utcToZonedTime,toDate
,it doesn't giving any warningsangular@14
node@16.15
The text was updated successfully, but these errors were encountered: