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
I have to upgrade React to 16.x from 15.x due to some requirements. However, an error pops up “module not found : Error: Cannot resolve module 'react/lib/ReactMount' ”. I solved this by upgrading react-hot-loader from 1.x to 4.x as old version relies on ReactMount that can't be found in new version. Unfortunately, a new error which I mention in title pops up afterwards. Been googling for a while, can't find a proper solution on it.
Anyone met the same thing?
The text was updated successfully, but these errors were encountered:
alex123bob
changed the title
It pops up error "node_modules/react-hot-loader/index.js" didn't return a function after upgrading react to 16.x and react-hot-loader to 4.x
It pops up error "node_modules/react-hot-loader/index.js" didn't return a function after upgrading react to 16.x and react-hot-loader to 4.x
Jan 8, 2020
alex123bob
changed the title
It pops up error "node_modules/react-hot-loader/index.js" didn't return a function after upgrading react to 16.x and react-hot-loader to 4.x
It pops up error "node_modules/react-hot-loader/index.js didn't return a function" after upgrading react to 16.x and react-hot-loader to 4.x
Jan 8, 2020
What else you might need to upgrade?
Quick googling tells me - webpack, or at least some webpack loaders, or at least Loader which complains in this case.
Just need upgrade react to 16.x
Yeah, loader complains in this case. However I looked into index.js and patch.js in react-hot-loader, it seems not different from the others, e.g. sass-loader.
I have to upgrade React to 16.x from 15.x due to some requirements. However, an error pops up
“module not found : Error: Cannot resolve module 'react/lib/ReactMount' ”
. I solved this by upgradingreact-hot-loader
from 1.x to 4.x as old version relies on ReactMount that can't be found in new version. Unfortunately, a new error which I mention in title pops up afterwards. Been googling for a while, can't find a proper solution on it.Anyone met the same thing?
The text was updated successfully, but these errors were encountered: