Skip to content
This repository has been archived by the owner on Mar 5, 2022. It is now read-only.

Invariant Violation with DropDown components #99

Closed
desoindx opened this issue Jul 18, 2019 · 3 comments
Closed

Invariant Violation with DropDown components #99

desoindx opened this issue Jul 18, 2019 · 3 comments
Labels

Comments

@desoindx
Copy link

I get an error while mounting my component

image

The component is correctly render in Cypress regular tests, and it only contains a DropDown from the react-bootstrap lib (same error with the react-simple-dropdown)

import {Dropdown} from 'react-bootstrap';


class UserControls extends React.Component {
    constructor(props) {
        super(props);
        this.state = {};
    }

    render() {
        return (
                <Dropdown>
                    <Dropdown.Toggle>
                        Toggle
                    </Dropdown.Toggle>
                    <Dropdown.Menu>
                        <li>
                            menu
                        </li>
                    </Dropdown.Menu>
                </Dropdown>
        );
    }
}

UserControls.displayName = 'UserControls';

UserControls.propTypes = {
};

export default UserControls;
@OneHatRepo
Copy link
Contributor

If the problem is point 3—multiple copies of react loaded—then the temporary fix is the same as this:
#51 (comment)

@bahmutov
Copy link
Contributor

Screen Shot 2020-04-29 at 5 45 01 PM

@bahmutov
Copy link
Contributor

🎉 This issue has been resolved in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants