skratchdot / react-bootstrap-daterangepicker

A date/time picker for react (using bootstrap). This is a react wrapper around the bootstrap-daterangepicker project.
http://projects.skratchdot.com/react-bootstrap-daterangepicker/
Other
474 stars 203 forks source link

Module not found: Can't resolve 'bootstrap-daterangepicker' #169

Closed vijaygawade18 closed 6 years ago

vijaygawade18 commented 6 years ago

Hi @skratchdot I am having this issue while implementing the date-picker in my app.

import DateRangePicker from 'react-bootstrap-daterangepicker';

./node_modules/react-bootstrap-daterangepicker/dist/bundle.js,
Module not found: Can't resolve 'bootstrap-daterangepicker'

Need your help to resolve it.

skratchdot commented 6 years ago

@vijaygawade18 - It looks like the peerDependencies aren't satisfied. Can you try running:

npm install --save bootstrap-daterangepicker react jquery moment prop-types

and see if it fixes your issue?

vijaygawade18 commented 6 years ago

Hi @skratchdot issue is resolved. I had not imported the bootstrap-daterangepicker in my component file. Importing it solved my problem. Thanks!

sr3d commented 5 years ago

For Rails 5 users, make sure you add both packages, e.g.

yarn add bootstrap-daterangepicker react-bootstrap-daterangepicker

otherwise you'll get similar complaint.

Lamanris commented 3 years ago

For Rails 5 users, make sure you add both packages, e.g.

yarn add bootstrap-daterangepicker react-bootstrap-daterangepicker

otherwise you'll get similar complaint.

Thank you! It helped me. But I am using only react