Error on `injectStyles`: "Failed to execute 'appendChild' on 'Node': Only one element on document allowed."
See original GitHub issuePossibly related: https://github.com/wwayne/react-tooltip/issues/669
DOMException: Failed to execute 'appendChild' on 'Node': Only one element on document allowed.
at ReactTooltip.injectStyles (webpack-internal:///cpGi:1195:17)
at ReactTooltip.injectStyles (webpack-internal:///wssv:717:25)
at ReactTooltip.componentDidMount (webpack-internal:///cpGi:1149:12)
at ReactTooltip.componentDidMount (webpack-internal:///wssv:707:123)
at commitLifeCycles (webpack-internal:///fxOa:20659:24)
at commitLayoutEffects (webpack-internal:///fxOa:23422:7)
at HTMLUnknownElement.callCallback (webpack-internal:///fxOa:3946:14)
at Object.invokeGuardedCallbackDev (webpack-internal:///fxOa:3995:16)
at invokeGuardedCallback (webpack-internal:///fxOa:4057:31)
at commitRootImpl (webpack-internal:///fxOa:23147:9) "
at AppContainer (eval at ES6ProxyComponentFactory (webpack-internal:///wssv), <anonymous>:14:7)
at HotExportedRoot (eval at ES6ProxyComponentFactory (webpack-internal:///wssv), <anonymous>:14:7)"
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Failed to execute 'appendChild' on 'Node': Only one ...
The error arises when you click on the circle: the rectangle that should appear within the two-rectangle imported drawing doesn't appear, and the...
Read more >Failed to execute 'appendChild' on 'Node': Only one ...
This error happens with v4.2.12. ... Failed to execute 'appendChild' on 'Node': Only one element on document allowed. ... then run npm start....
Read more >Uncaught TypeError: Failed to execute 'appendChild' on 'Node'
In developing a Javascript function, I ran into the following error when I looked at my console: Uncaught TypeError: Failed to execute 'appendChild'...
Read more >DOMException: Failed to execute 'appendChild' on 'Node'
Recently I managed to receive form submissions using a Netlify form on my site. However, despite the submission working perfectly I get the...
Read more >style-loader
component -with-css-modules.js import styles from "./styles.css"; const divElement = document.createElement("div"); divElement.className = styles["my-class"] ...
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 FreeTop 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
Top GitHub Comments
Getting the same error while running the test.
@sumthief I am getting the same error as @ayusshar and can provide a reproducible example:
Example.js
Example.test.js
Or as one test file all together: