react-multi-email icon indicating copy to clipboard operation
react-multi-email copied to clipboard

Uncaught TypeError: Cannot read properties of null (reading 'useRef')

Open AhmedAbdElaziz-dev opened this issue 3 years ago • 9 comments

this error happens when using it with react 17.0.0 any idea how to solve it ?

AhmedAbdElaziz-dev avatar Dec 04 '22 22:12 AhmedAbdElaziz-dev

I am too getting this error

vmundhra avatar Dec 13 '22 19:12 vmundhra

I am to getting this error. how we can resolve this. React version: 17.0.2

rajdeepkhandelwal avatar Dec 19 '22 08:12 rajdeepkhandelwal

Can we please fix this for react 17+

monica-boga avatar Dec 22 '22 11:12 monica-boga

Same here

sblausten avatar Dec 26 '22 10:12 sblausten

any solution yet?? same error

` react.development.js:1630 Uncaught TypeError: Cannot read properties of null (reading 'useRef')

at Object.useRef (react.development.js:1630:1)
at ReactMultiEmail (ReactMultiEmail.js:40:1)
at renderWithHooks (react-dom.development.js:16141:1)
at mountIndeterminateComponent (react-dom.development.js:20838:1)
at beginWork (react-dom.development.js:22342:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4157:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4206:1)
at invokeGuardedCallback (react-dom.development.js:4270:1)
at beginWork$1 (react-dom.development.js:27243:1)
at performUnitOfWork (react-dom.development.js:26392:1)`

shubhambatra avatar Jan 06 '23 07:01 shubhambatra

Hello,

Just want to mention here that I fixed this error after upgrading from React 17 -> 18!

garyfoo avatar Jan 12 '23 08:01 garyfoo

Use 0.5.3 version to fix this issue.

npm i [email protected]

nandhu avatar Feb 24 '23 16:02 nandhu

And for styling, need to import css as import 'react-multi-email/style.css';

bikramnathdev avatar Mar 21 '23 06:03 bikramnathdev

It looks resolved with https://github.com/axisj/react-multi-email/issues/116

134130 avatar Jul 01 '23 06:07 134130