Skip to content
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

DateRange-Picker breaks the application #225

Open
priverblack opened this issue Nov 5, 2019 · 0 comments
Open

DateRange-Picker breaks the application #225

priverblack opened this issue Nov 5, 2019 · 0 comments

Comments

@priverblack
Copy link

priverblack commented Nov 5, 2019

I just did the initial installation from the github page (npm install react-daterange-picker and after npm install --save @types/react-daterange-picker) and after th initial npm install it gives me a warning with npm WARN [email protected] requires a peer of moment-range@^3.0.3 but none is installed. You must install peer dependencies yourself.
When I already have the most updated version of moment-range in the project

And afterwards I just copied the code from github and did npm start and it gives me a blank page

Error(from console)
Uncaught TypeError: Object(...) is not a function at Module../node_modules/react-daterange-picker/src/moment-range.js (bundle.js:103437) at __webpack_require__ (bundle.js:727) at fn (bundle.js:101) at Object../node_modules/react-daterange-picker/dist/moment-range.js (bundle.js:102813) at __webpack_require__ (bundle.js:727) at fn (bundle.js:101) at Object../node_modules/react-daterange-picker/dist/DateRangePicker.js (bundle.js:101077) at __webpack_require__ (bundle.js:727) at fn (bundle.js:101) at Module.<anonymous> (bundle.js:4063)

Warning(from terminal)
WARNING in ./node_modules/react-daterange-picker/src/moment-range.js 3:15-27 "export 'extendMoment' was not found in 'moment-range' @ ./node_modules/react-daterange-picker/dist/moment-range.js @ ./node_modules/react-daterange-picker/dist/utils/getYearMonth.js @ ./node_modules/react-daterange-picker/dist/DateRangePicker.js

I'm using [email protected] instead of the create-react-app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant