question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi @wojtekmaj I am having an issue with react-date-picker where it is unable to resolve the react-calendar module. I don’t know why it is happening. This is the first time I am facing this kind of issue. Here is the complete error report: React: 15.6 react-date-picker: 6.7.0 Error reported by webpack: ERROR in ./node_modules/react-date-picker/dist/shared/locales.js [0] Module not found: Error: Can't resolve 'react-calendar/dist/shared/locales' in '/home/modestreet/modestreet-repo/webUI/node_modules/react-date-picker/dist/shared' [0] @ ./node_modules/react-date-picker/dist/shared/locales.js 7:15-60 [0] @ ./node_modules/react-date-picker/dist/DateInput.js [0] @ ./node_modules/react-date-picker/dist/DatePicker.js [0] @ ./node_modules/react-date-picker/dist/entry.js [0] @ ./src/components/addEditInfo/AddEditInfo.js [0] @ ./src/components/setupModule/SetupModule.js [0] @ ./src/components/index.js [0] @ ./src/services/routes.js [0] @ ./src/components/modeStreetRouter/modeStreetRouter.js [0] @ ./src/app.js [0] @ ./index.js

I found a similar issue related to this but it was closed due to inactivity. Although I have commented there as well. See https://github.com/wojtekmaj/react-date-picker/issues/11#issuecomment-420168268. Feel free to close this incase you decided to reopen that one. Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
wojtekmajcommented, Sep 11, 2018

You could add "react-calendar": "2.11.0" (mind the lack of ^) to your package.json and hopefully npm will dedupe it and won’t install two versions of react-calendar.

1reaction
adityatandon007commented, Sep 11, 2018

@wojtekmaj thanks mate! 😄 You saved me a lot of time. Although I have some other calendar errors that might be because of invalid props I might be passing, but webpack has complied successfully. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

module-not-found - Next.js
The module you're trying to import is not installed in your dependencies · The module you're trying to import is in a different...
Read more >
ModuleNotFoundError: no module named Python Error [Fixed]
How to fix the ModuleNotFoundError in Python · 1. Make sure imported modules are installed · 2. Make sure modules are spelled correctly...
Read more >
Python - Module Not Found - Stack Overflow
All modules in Python have to have a certain directory structure. You can find details here. Create an empty file called __init__.py under...
Read more >
Have a JavaScript Module Not Found Error ... - Airbrake Blog
Most likely, the reason you're seeing a “module not found” error message within your JavaScript code will be something simple, like putting an ......
Read more >
How to fix 'Module not found: Can't resolve 'http' in ... - YouTube
Basically, just change 'react-scripts' to 4.0.2 in your package.json and run `npm install` again :D Follow me on Twitter: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found