Is date-fns@2.30.0 the last version compatible with ionic / angular?

In my app (Ionic 8, Angular 18), when I use a version of date-fns greater than 2.30.0, I get errors like:

Error: [ng] Error: node_modules/date-fns/intlFormatDistance.d.ts:6:16 - error TS2724: ‘Intl’ has no exported member named ‘RelativeTimeFormatOptions’. Did you mean ‘DateTimeFormatOptions’? 6 extends Intl.RelativeTimeFormatOptions,

Should I keep 2.30.0, or do I need to make any changes?

There is an open issue on the repo over here - 'Intl' has no exported member named 'RelativeTimeFormatOptions'. Did you mean 'DateTimeFormatOptions'? [plugin angular-compiler] · Issue #3938 · date-fns/date-fns · GitHub.

thanks! :slight_smile:

i guess i’ll rollback to 2.30.0 for the moment