react-mailto icon indicating copy to clipboard operation
react-mailto copied to clipboard

Cannot read property 'node' of undefined

Open narendra66 opened this issue 5 years ago • 4 comments

In the react v-16>

103 | }(_react.Component); 104 | 105 | Mailto.propTypes = {

106 | children: _react.PropTypes.node.isRequired, 107 | email: _react.PropTypes.string.isRequired, 108 | headers: _react.PropTypes.object, 109 | obfuscate: _react.PropTypes.bool

shows the error

narendra66 avatar Aug 06 '20 07:08 narendra66

Exact same issue in gatsbyjs (Gatsby CLI 2.12) !

A hint definitely would help us a lot!

Regards

asimakos avatar Aug 08 '20 11:08 asimakos

Having same issue in Next.js!

doverradio avatar Sep 29 '20 23:09 doverradio

I think it's related to the React version that this package uses ("react": "^15.2.1" from this package's package.json file)

From React docs: image

jverce avatar Oct 05 '20 00:10 jverce

Please what is the solution to this?

SimonJulius avatar Jan 19 '21 21:01 SimonJulius