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
It appears date-fns@2.0 is no longer listed in peerDependencies, so when this is used in a project that has other things that depend on date-fns@1.x, it fails to load with the error:
@kurkle maybe we need dependencies rather than peerDependencies. this package certainly requires date-fns@2.x so shouldn't there be a dependency declared in package.json? since there is no declared dependency it seems to be resolving the older version (even though both versions are available) and failing.
adding the dependency will make yarn/npm populate a siloed node_modules tree within the installed code and everything should work.
It appears date-fns@2.0 is no longer listed in peerDependencies, so when this is used in a project that has other things that depend on date-fns@1.x, it fails to load with the error:
since date-fns@1.x doesn't have
toDate
.The text was updated successfully, but these errors were encountered: