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
No idea what's going on here. Does the "node_modules/date-fns" directory/symlink even exist in your project? I would start by deleting you node_modules directory and the lock file, and then reinstall your dependencies. Maybe clean your dependency manager's global cache in case that got corrupted.
If you can create a simple reproduction repo, I can have a look.
Noticed two things though:
"@types/date-fns" is not a thing, date-fns ships its own types. You can remove this dependency.
./node_modules/react-day-picker/dist/index.esm.js:2:0
Module not found: Can't resolve 'date-fns'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./components/ui/calendar.jsx
./components/OrderCalendar.js
./components/CurrentOrderCard.js
./components/point-of-sale/OrdersButton.js
./components/NavigationBar.js
./app/layout.js
error occured when im on my project clone, when I remove the calendar component, it still has error on the sanity studio
./node_modules/sanity/lib/_chunks-es/StructureToolProvider.js:62:0
Module not found: Can't resolve 'date-fns'
https://nextjs.org/docs/messages/module-not-found
Import trace for requested module:
./node_modules/sanity/lib/structure.esm.js
./sanity.config.js
./app/studio/[[...index]]/page.jsx
The text was updated successfully, but these errors were encountered: