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
Describe the bug
When vercel is deploying my typescript project, it gives an error of Module '"date-fns/addDays"' has no exported member 'addDays'. Did you mean to use 'import addDays from "date-fns/addDays"' instead? This goes on for all the 31 imports
I saw this error on local and I resolved it by changing import { addDays } from "date-fns/addDays";
to import addDays from "date-fns/addDays";
However, vercel doesn't use my local nodemodules folder, it generates it's own during deployment so it's still encountering same issue. How do I resolve this To Reproduce
Steps to reproduce the behavior:
Install latest version of react-datepicker
Build on vercel to see error
Expected behavior
It should build successfully without errors from date-picker
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I have tried importing date-fns as a direct dependey, still didn't work, kindly assist.
The text was updated successfully, but these errors were encountered:
Describe the bug
When vercel is deploying my typescript project, it gives an error of Module '"date-fns/addDays"' has no exported member 'addDays'. Did you mean to use 'import addDays from "date-fns/addDays"' instead? This goes on for all the 31 imports
I saw this error on local and I resolved it by changing import { addDays } from "date-fns/addDays";
to import addDays from "date-fns/addDays";
However, vercel doesn't use my local nodemodules folder, it generates it's own during deployment so it's still encountering same issue. How do I resolve this
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should build successfully without errors from date-picker
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I have tried importing date-fns as a direct dependey, still didn't work, kindly assist.
The text was updated successfully, but these errors were encountered: