Open linonetwo opened 8 months ago
Found:
But this block the development, can you make it optional?
Error in event handler: TypeError: Cannot read properties of null (reading '__CE_registry')
at Ha.Node.cloneNode (chrome-extension://chokmkfogadphfaaeaibmiefbkgcphke/vendor/webcomponents-custom-elements.js:42:436)
at Object.parseReadability (chrome-extension://chokmkfogadphfaaeaibmiefbkgcphke/shared/hooks/useReadability.ts.js:5:36)
at chrome-extension://chokmkfogadphfaaeaibmiefbkgcphke/content/hooks/useMessaging.ts.js:32:38
Still happen on latest version ("@crxjs/vite-plugin": "^2.0.0-beta.19",)
workaround is comment out
- magic.prepend(`import '${customElementsId}';`);
+ // magic.prepend(`import '${customElementsId}';`);
Build tool
Vite
Where do you see the problem?
Describe the bug
My usage is
when doing
document.cloneNode(true)
:webcomponents-custom-elements.js cause error:
Can you make this dep optional? I'm not using custom element.
Reproduction
Use https://www.npmjs.com/package/@mozilla/readability in content script
Logs
No response
System Info
Severity
annoyance