React-number-format: Issue with server-side-rendering (SSR)

Created on 5 Jan 2021  路  9Comments  路  Source: s-yadav/react-number-format

Seems like the changes in version 4.4.3 introduced this error which makes this package not compatible with SSR

ReferenceError: navigator is not defined
    at addInputMode (/project/node_modules/react-number-format/lib/utils.js:214:22)
    at NumberFormat.render (/project/node_modules/react-number-format/lib/number_format.js:1007:47)
bug

Most helpful comment

@rj-david @gustavocarvalho07 Fixed on 4.4.4

Let me know if the issue still persists.

All 9 comments

Me too

Me too on version 4.3.0

Same here!

@s-yadav hope you can check

Wtf? same problem

Shit. Will fix it soon.

@rj-david @gustavocarvalho07 Fixed on 4.4.4

Let me know if the issue still persists.

Confirming the fix. Thanks @s-yadav

It is working now! Thank you so much, @s-yadav !!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

havantuan picture havantuan  路  7Comments

fedulovivan picture fedulovivan  路  6Comments

cescoferraro picture cescoferraro  路  6Comments

tanya94 picture tanya94  路  3Comments

bernatfortet picture bernatfortet  路  3Comments