Following the docs at https://docs.plasmo.com/framework/content-scripts-ui/life-cycle#renderer to override the default render using the built in Inline Container or overlay Container fails with the error: Cannot read properties of undefined (reading 'type') at injectAnchor (csui.ts:58:14).
To reproduce create a new content ui script with an InlineCSUIContainer or OverlayCSUIContainer.
Uncaught (in promise)
TypeError: Cannot read properties of undefined (reading 'type')
at injectAnchor (csui.ts:58:14)
at createShadowContainer (csui.ts:74:3)
at async Object.render (demo.tsx:35:15)
(OPTIONAL) Contribution
[ ] I would like to fix this BUG via a PR
Code of Conduct
[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate problems.
What happened?
Following the docs at https://docs.plasmo.com/framework/content-scripts-ui/life-cycle#renderer to override the default render using the built in
Inline Container
oroverlay Container
fails with the error:Cannot read properties of undefined (reading 'type') at injectAnchor (csui.ts:58:14)
.To reproduce create a new content ui script with an
InlineCSUIContainer
orOverlayCSUIContainer
.InlineCSUIContainer:
OverlayCSUIContainer:
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Microsoft Edge
Relevant log output
(OPTIONAL) Contribution
Code of Conduct