Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AhmedAbdElaziz-dev opened this issue Dec 4, 2022 · 9 comments

Comments

@AhmedAbdElaziz-dev
Copy link

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

@vmundhra
Copy link

I am too getting this error

@rajdeepkhandelwal
Copy link

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

@monica-boga
Copy link

Can we please fix this for react 17+

@sblausten
Copy link

Same here

@shubhambatra
Copy link

shubhambatra commented Jan 6, 2023

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)`

@garyfoo
Copy link

garyfoo commented Jan 12, 2023

Hello,

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

@nandhu
Copy link

nandhu commented Feb 24, 2023

Use 0.5.3 version to fix this issue.

@bikramnathdev
Copy link

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

@134130
Copy link
Contributor

134130 commented Jul 1, 2023

It looks resolved with #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants