material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Can't resolve 'date-fns/addDays

Open Mikaila94 opened this issue 7 years ago • 7 comments

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

Mikaila94 avatar Nov 27 '19 09:11 Mikaila94

The same thing happens for me.

acidoxee avatar Dec 02 '19 16:12 acidoxee

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

imjared avatar Dec 08 '19 15:12 imjared

Also happening for me with latest version of material table: "material-table": "^1.54.2",

hutber avatar Jan 03 '20 15:01 hutber

Downgrade to version 1.53.0 then it will work for now.

hutber avatar Jan 03 '20 15:01 hutber

Is this still valid? I cannot reproduce it anymore? Here is a sandbox with a clean install.

DominikEngel avatar May 29 '20 08:05 DominikEngel

I received the same error using version 1.66.0. Attempted to downgrade to version 1.53.0 like hutber suggested, no luck.

julianmcolina avatar Jul 24 '20 23:07 julianmcolina

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.

stale[bot] avatar Oct 23 '20 00:10 stale[bot]