S
SolidJS16mo ago
Revxrsal

an error that occurs every time something changes, but disappears with refresh

o/ i've run into some really odd behavior today. whenever i change anything in my code, the hot reload thing does its job but the program runs into this error
Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
at cleanChildren (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:664:12)
at insertExpression (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:559:15)
at Object.fn (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:337:35)
at runComputation (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:742:22)
at updateComputation (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:725:3)
at createRenderEffect (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:229:5)
at insert (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:337:3)
at http://localhost:3000/src/components/icons/index.tsx:55:5
at IconTemplate (http://localhost:3000/src/components/icons/index.tsx:65:5)
at SiMysql (http://localhost:3000/src/components/icons/si/index.tsx:227:10)
Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
at cleanChildren (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:664:12)
at insertExpression (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:559:15)
at Object.fn (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:337:35)
at runComputation (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:742:22)
at updateComputation (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:725:3)
at createRenderEffect (http://localhost:3000/node_modules/.vite/deps/chunk-JCQPQJXD.js?v=ef9131dd:229:5)
at insert (http://localhost:3000/node_modules/.vite/deps/chunk-K2MOVHHE.js?v=ef9131dd:337:3)
at http://localhost:3000/src/components/icons/index.tsx:55:5
at IconTemplate (http://localhost:3000/src/components/icons/index.tsx:65:5)
at SiMysql (http://localhost:3000/src/components/icons/si/index.tsx:227:10)
this occurs whenever i use this component: https://gist.github.com/Revxrsal/ac9fecc2e5b8acfca30070929d7b42dd (i extracted the component from https://github.com/x64Bits/solid-icons) the error appears only after i change something, then disappears after a full refresh. it's really annoying as this means i have to comment-out icons while developing, or need a full reload on every small change. any idea?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server