Breaking change in version 4.3.0
Author: JonathanViauCreated Jul 21, 2026Updated Jul 21, 2026
Hello,
While upgrading from 4.2.0 to 4.3.0, we now get the following error:
TS2305: Module '"date-fns"' has no exported member 'format'.
Our usage is very similar to the example posted on https://www.npmjs.com/package/date-fns?activeTab=readme:
import { format } from "date-fns";
It looks like it is not exposed in a submodule:
import { format } from 'date-fns/format';
If this change is required on your side, could it be encapsulated and documented in a new major version or provide a fix to keep compatibility when updating a minor version?
Best regards, Jonathan
Source: date-fns/date-fns