question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(React 16.6) Expected subtree parent to be a mounted class component.

See original GitHub issue

Upgrading 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
lavrtoncommented, Oct 25, 2018

I think we need to add a runtime error (or a warning) if there is a version mismatch between react and react-konva. There are too many related issues.

6reactions
Proavuscommented, Oct 25, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found