React-datepicker: _reactOnclickoutside2.default is not a function

Created on 28 Jul 2017  路  3Comments  路  Source: Hacker0x01/react-datepicker

I'm using react-datepicker in the following way.

import ReactDatePicker from 'react-datepicker/lib/datepicker';

I'm getting this error related to react-onclickoutside.

VM17482:94 Dynamic page loading failed TypeError: (0 , _reactOnclickoutside2.default) is not a function

Versions of packages I'm using

react: 15.6.1
react-datepicker: 0.52.0
webpack: 2.1.0-beta.15

All 3 comments

After digging around I figured this might be due to https://github.com/webpack/webpack/issues/706

I fixed it by changing react-datepicker to airbnb/react-dates :+1:

Facing the same problem
seen no one care

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ro-savage picture ro-savage  路  3Comments

jjjss94 picture jjjss94  路  3Comments

formigone picture formigone  路  3Comments

ericreis picture ericreis  路  3Comments

ali-master picture ali-master  路  3Comments