could someone please help me with this error?
Error: node_modules/date-fns/index.d.ts:246:1 – error TS1383: Only named exports may use ‘export type’.
246 export type * from “./types.js”;
typescript version
"typescript": "^4.9.3"
npm version
10.5.0
angular 16
"@angular/material": "^15.2.9",
i use latest version of typescript but it make another problems
New contributor
Chaymae LOUKILI is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
This is a known issue. There are two options to fix the error:
- Downgrade date-fns to v3.1.0
- Update TypeScript to v5. For this you will need to update Angular to v16, see the version compatibility table