You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to upgrade react-native from 0.66 to 0.70 in a monorepo setup, I was able to compile the webpage using react-native-web but there was an uncaught TypeError that causes the webpage to display a white page.
Uncaught TypeError: Cannot read properties of undefined (reading 'get')
at ../../node_modules/react-native-vector-icons/lib/NativeRNVectorIcons.js (NativeRNVectorIcons.js:21:37)
at options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ../../node_modules/react-native-vector-icons/lib/ensure-native-module-available.js (ensure-native-module-available.js:1:1)
at options.factory (react refresh:6:1)
at __webpack_require__ (bootstrap:24:1)
at fn (hot module replacement:62:1)
at ../../node_modules/react-native-vector-icons/lib/create-icon-set.js (create-icon-set.js:5:1)
at options.factory (react refresh:6:1)
I suspect that the lib/NativeRNVectorIcons.web.js is not mocking lib/NativeRNVectorIcons.js, not sure why at this point.
Currently my only resolution for this would be to stick to RNVI 9.2.0. Upgrading react-native-web from 0.18 to 0.19 would be a huge change and I ideally do not want to go on with that at the moment since the react-native upgrade has been a tedious process.
Hope this is enough information to help me diagnose my issue 😅 Thank you in advance. Please feel free to ask for more info if required.
The text was updated successfully, but these errors were encountered:
@JavanHuang I suspect as you allude to that the .web version isn't being loaded when it should be. Which would point to a webpack issue. Your config does look about right though.
Does RNVI 9.2.0 work? I did quick diff and there aren't any changes I can see that would impact this
@johnf Thanks for the follow-up! I'm currently using RNVI 9.2.0 within my project so there is no impact in downgrading from 10.0.3 to 9.2.0.
However, I noticed there was a new release of RNVI 10.1.0. Would it be recommended to upgrade react-native to >=0.71 in order to make it compatible to RNVI >=10.1.0?
Environment
Description
While trying to upgrade
react-native
from0.66
to0.70
in a monorepo setup, I was able to compile the webpage usingreact-native-web
but there was an uncaught TypeError that causes the webpage to display a white page.I suspect that the
lib/NativeRNVectorIcons.web.js
is not mockinglib/NativeRNVectorIcons.js
, not sure why at this point.Currently my only resolution for this would be to stick to RNVI
9.2.0
. Upgradingreact-native-web
from0.18
to0.19
would be a huge change and I ideally do not want to go on with that at the moment since thereact-native
upgrade has been a tedious process.Hope this is enough information to help me diagnose my issue 😅 Thank you in advance. Please feel free to ask for more info if required.
The text was updated successfully, but these errors were encountered: