Closed alexandru-tomescu closed 5 years ago
Problem is not in RHL, you are trying to render a component, which was not resolved to any valid shape, undefined
in this case.
Anyway - RHL should not fail.
@theKashey this error and a few others was related to the library
package, was using different instances of react
, react-router
(and so on) from the app
, so i got rid of it with the webpack externals
. Not clear if the instances issue was the reason of the error, but maybe this solution can help others too. I think for now this can be closed.
RHL could patch only one version of React, and you are expected, especially now, to have only one version of React. See https://github.com/facebook/react/issues/13991#issuecomment-463486871 for details and different ways to solve the problem.
Hm. I get this error when trying to use a component that is actually undefined. I only have one version of react. It's not a helpful error.
Please update react-hot-loader
, it was fixed meanwhile
HI. I'm trying to use
Link
component fromreact-router-dom
in a library package created with lerna (Lerna managesapp
andlibrary
packages), and when i'm inserting it in render method, i'm getting this error fromreact-hot-loader.development.js