(React 16.6) Expected subtree parent to be a mounted class component.
See original GitHub issueUpgrading to 16.6 seems to cause the below error.
Example usage:
<ReactKonva.Stage scale={scale} width={width} height={width}>
<ReactKonva.Layer>
<ReactKonva.Image x={0} y={0} width={width} height={height} image={this.props.image} />
</ReactKonva.Layer>
</ReactKonva.Stage>
Error Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Expected subtree parent to be a mounted class component
Hi, Getting this error when trying to mount my component: image. The Component with the tooltip seems to be working fine on its...
Read more >"Expected subtree parent to be a mounted class component ...
"Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue."...
Read more >Expected subtree parent to be a mounted class component ...
Coding example for the question "Expected subtree parent to be a mounted class component. " after extracting component-Reactjs.
Read more >expected subtree parent to be a mounted class component ...
Seems like a problem of import to me. In react-router-dom, Router as been replaced by BrowserRouter . Or may be a bad default...
Read more >use-subscription | Yarn - Package Manager
React is a JavaScript library for building user interfaces. Declarative: React makes it painless to create interactive UIs. Design simple views for each...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think we need to add a runtime error (or a warning) if there is a version mismatch between
react
andreact-konva
. There are too many related issues.Hi schester44, please take a look at package.json and make sure you’ve updated all of these packages to 16.6: react, react-dom, react-konva. Let me know if this helps.