Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
ons-navigator in React with Onsen UI 2
-
I couldn’t get working correctly ons-navigator in React with Onsen UI 2(beta 6).
Is there any workaround or a plan to fix?My JSX (not HTML):
<ons-navigator> <ons-page> <div></div> </ons-page> </ons-navigator>
Error Message:
Uncaught Invariant Violation: findComponentRoot(…, .0.0.0.0.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 ``.
When I get rid of div element, I get no error.
-
@masaha03 There is indeed a plan to fix it: gh#1213
-
Thank you!