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
I've just installed the date-fs to my Angular v11 app, and I'm getting this warning: Warning: app.component.ts depends on 'date-fns/locale'. CommonJS or AMD dependencies can cause optimization bailouts. if I import locales like:
import {enUS as locale} from 'date-fns/locale';
I can make the warning go away if I'm adding allowedCommonJsDependencies into my angular.json file, but I really like to avoid using it that way.
The text was updated successfully, but these errors were encountered:
I've just installed the
date-fs
to my Angular v11 app, and I'm getting this warning:Warning: app.component.ts depends on 'date-fns/locale'. CommonJS or AMD dependencies can cause optimization bailouts.
if I import locales like:I can make the warning go away if I'm adding
allowedCommonJsDependencies
into myangular.json
file, but I really like to avoid using it that way.The text was updated successfully, but these errors were encountered: