-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module not found: Can't resolve 'date-fns' #3746
Comments
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:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
./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: