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.

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 issue

Description

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
michalochmancommented, Sep 12, 2018

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.

0reactions
michalochmancommented, Nov 30, 2018

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.

Read more comments on GitHub >

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

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