Can't resolve 'date-fns/addDays
I installed material-table with npm and got this error: "Can't resolve 'date-fns/addDays" when I tried to render the MaterialTable component. From your package.json, it seems like date-fns is a dependency, so I am not sure why this error occurs. The problem is solved by installing date-fns as a dependency in my project, but I shouldn't have to do this. Can you look into this?
- Mac OSX, Latest version of Chrome
The same thing happens for me.
I'm not entirely sure but may be related to the underlying version of date-io and an issue that happened there?
https://github.com/dmtrKovalenko/date-io/issues/232
Also happening for me with latest version of material table: "material-table": "^1.54.2",
Downgrade to version 1.53.0 then it will work for now.
Is this still valid? I cannot reproduce it anymore? Here is a sandbox with a clean install.
I received the same error using version 1.66.0. Attempted to downgrade to version 1.53.0 like hutber suggested, no luck.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.