Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue
See original GitHub issueDescription
Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue
Steps to reproduce
import React, { Component } from 'react';
import { Stage } from "react-pixi-fiber";
class TOScada extends Component {
constructor(props){
super()
this.state = {
width: 0,
height: 0
}
}
render() {
return (
<div>
<Stage width={800} height={600} options={{ backgroundColor: 0x10bb99 }}>
</Stage>
</div>
);
}
}
export default TOScada;
2.Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue
Additional info
- react-pixi-fiber version: 0.4.9
- React version:16.5.0
- ReactDOM version:16.5.0
- PixiJS version:4.8.2
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Expected subtree parent to be a mounted class component
Error : Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file...
Read more >reactjs - "Expected subtree parent to be a mounted class ...
"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. ...
uncaught error: expected subtree parent to be a mounted class component. this error is likely caused by a bug in react. please file...
Read more >Expected subtree parent to be a mounted class component ...
[Solved]-"Expected subtree parent to be a mounted class component. " after extracting component-Reactjs. to my webpack. config it works now.
Read more >ManageIQ/manageiq/ui
Invariant Violation: Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file...
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 Free
Top 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
Seems like it’s not working after this change: https://github.com/facebook/react/pull/13397
I need to update
react-reconciler
to the newest version to fix this.The way to solve these compatibility issues from this library standpoint would be to change react-reconciler to peer dependency instead and tell users to require the version that works with their react version.