Module not found: Can't resolve 'react-datepicker/dist/react-datepicker.css' in v2.9.0
See original GitHub issueDescribe the bug
Looks like the package folder is missing dist
folder after 2.9.0 release causing webpack build to fail due to the missing ‘react-datepicker/dist/react-datepicker.css’ file
To Reproduce Steps to reproduce the behavior:
Install 2.9.0 version and import ‘react-datepicker/dist/react-datepicker.css’ file in one of your components
Desktop (please complete the following information):
- OS: Mac
Additional context Node: 12.9.0 NPM: 6.10.2
Issue Analytics
- State:
- Created 4 years ago
- Reactions:14
- Comments:30 (6 by maintainers)
Top Results From Across the Web
Module not found: Can't resolve 'react-datepicker
I have resolved this problem Type npm install react-datepicker --save in terminal on local environment or on production.
Read more >react-datepicker - npm
A simple and reusable datepicker component for React. ... Start using react-datepicker in your project by running `npm i react-datepicker`.
Read more >Module not found: Can't resolve 'react-datepicker' [Solved]
To solve the error "Module not found: Can't resolve 'react-datepicker'", make sure to install the react-datepicker package before importing from it.
Read more >jsweetman-react-datepicker - npm package - Snyk
A simple and reusable datepicker component for React, forked from https://github.com/Hacker0x01/react-datepicker For more information about how to use this ...
Read more >Getting started with react-datepicker - Retool
Nobody likes working with dates (especially in Javascript) but we all have to. If your app requires a date picker component (think: select...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
getting this error on v2.10.1
Thx @martijnrusschen ! All working now 💯