| Tech | Version |
|---------------------|---------|
| material-ui-pickers | 1.0.0-rc.9 |
| material-ui | 1.2 |
| React | 16.3 |
| Browser | Chrome Latest |
| Platform | |
The build to pass
I've gotten all the rest of this issues fixed, except this one.
ERROR in ./node_modules/material-ui-pickers/DatePicker/Calendar.js
Module not found: Error: Can't resolve 'react-event-listener' in 'C:\Projects\Work\PROJ\src\node_modules\material-ui-pickers\DatePicker'
@ ./node_modules/material-ui-pickers/DatePicker/Calendar.js 40:26-57
ERROR in ./node_modules/material-ui-pickers/_shared/ModalDialog.js
Module not found: Error: Can't resolve 'react-event-listener' in 'C:\Projects\Work\PROJ\src\node_modules\material-ui-pickers\_shared'
@ ./node_modules/material-ui-pickers/_shared/ModalDialog.js 32:26-57
I see the imports in these two files:
Yet I see no dependency on it in the package.json, am I missing something?
+1
Ha. It was included as dependency in material ui
That's weird. I had to include it myself.
Ok, no big deal.
Yeah, I had to too, strange
@dmtrKovalenko Why did you closed the issue, is it fixed?
Still have Module not found: Can't resolve 'react-event-listener' error, and still have to add react-event-listener dependency to my project.
I found the reason!
We will fix it in the next release, please do npm i react-event-listener for now
Closed because this was fixed in the previous release :)
Most helpful comment
I found the reason!
We will fix it in the next release, please do
npm i react-event-listenerfor now