Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropdownMenu causing Uncaught Invariant Violation: findComponentRoot #3624

Closed
stueynet opened this issue Mar 7, 2016 · 7 comments
Closed
Labels
duplicate This issue or pull request already exists

Comments

@stueynet
Copy link

stueynet commented Mar 7, 2016

Problem Description

Dropdown component causing dom change error in hot reload. When the basic Dropdown is rendered we get the following hot reloading error:

Uncaught Invariant Violation: findComponentRoot(..., .0.1.1.1.2.1.$1/=11.0.2.1.0.$2016-03-07T13=208=201-05=2001.1:$37.3.0.1.0): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ``.

This is usually a result of bad formed HTML. We checked all components and only the Dropdown is causing this problem.

Versions

  • Material-UI: 15 alpha 1
  • React: 14.7
  • Browser: Chrome / Firefox
  • Webpack: 1.12.12
  • Webpack dev server 1.14.1
  • react-hot-loader: 1.3.0
@oliviertassinari oliviertassinari added the duplicate This issue or pull request already exists label Mar 7, 2016
@oliviertassinari
Copy link
Member

Thanks for raising this issue but that's a duplicate of #3586.

@gazzer82
Copy link

I'm still seeing this issue, seems the PR in thew other issue was for Popover not DropDownMenu?

@oliviertassinari
Copy link
Member

@gazzer82 The Popover is used internally by the DropDownMenu. Are you using the master branch?

@gazzer82
Copy link

I am using the latest version from NPM, should I try pulling directly from github?

Sent from my iPhone

On Mar 13, 2016, at 01:18, Olivier Tassinari <notifications@gitpro.ttaallkk.topmailto:notifications@github.com> wrote:

@gazzer82https://github.com/gazzer82 The Popover is used internally by the DropDownMenu. Are you using the master branch?

Reply to this email directly or view it on GitHubhttps://github.com//issues/3624#issuecomment-195919797.

@stueynet
Copy link
Author

@gazzer82 You might try deleting your node_modules/material-ui folder and then npm install. That worked fine for me.

@gazzer82
Copy link

@stueynet i have just tried that, no dice.

@gazzer82
Copy link

Ok, so i manually changed the 'noscript' to 'div' in the compiles js popper.js button and that's fixed it for now.

So i guess that PR hasn't made it into the NPM version, so i assume it will roll up in alpha.2

I did try pulling this from github and using that version, but i couldn't get Babel to play nice and convert the src files.

Thanks

Gareth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants