react-modal-dialog icon indicating copy to clipboard operation
react-modal-dialog copied to clipboard

Undefined number in CloseCircle.js

Open adilsaeed31 opened this issue 6 years ago • 4 comments

Hi I am using this to my project,

but getting this error


Uncaught TypeError: Cannot read property 'number' of undefined
    at eval (CloseCircle.js?5cea:48)
    at Object.<anonymous> (bundle.js:1)
    at e (bundle.js:1)
    at eval (UnstyledFlexDialog.js?42b9:33)
    at Object.<anonymous> (bundle.js:1)
    at e (bundle.js:1)
    at eval (FlexDialog.js?69c0:33)
    at Object.<anonymous> (bundle.js:1)
    at e (bundle.js:1)
    at eval (index.js?f624:9)

adilsaeed31 avatar Jan 13 '18 12:01 adilsaeed31

@adilsaeed31 This one because you're using react@16, but sources get the PropTypes from 'react' package.

ilyadoroshin avatar Feb 20 '18 10:02 ilyadoroshin

Is there any fix release for this?

kjvenky avatar Apr 03 '18 07:04 kjvenky

@kjvenky use @Dean177's PR "react-modal-dialog": "Dean177/react-modal-dialog#support\/bump-react",

ilyadoroshin avatar Apr 03 '18 18:04 ilyadoroshin

See https://github.com/qimingweng/react-modal-dialog/pull/54

Dean177 avatar Apr 03 '18 20:04 Dean177