Type error on CSUI
I copied and pasted the example (https://docs.plasmo.com/framework/content-scripts-ui/life-cycle#custom-renderer) of the docs and it's throwing errors. Anyone knows how to fix?
(ignore the component error, it does not exist)
Plasmo Docs
Life Cycle of Plasmo CSUI – Plasmo
Plasmo's CSUI orchestrates a lifecycle dedicated to mounting and unmounting your React, Vue, or Svelte components in a content script.
8 Replies
Whoops, that's a bug in the typing and also within the docs
@Mael just released 0.69.2 and also the docs update, pls check them out and lmk if it still doesn't work!
Basically:
@louis
Upgraded the version. Still getting the errors tho 🤔
restart the ts server too
lol, restarting VSCode worked. Thank you so much!
@louis just FYI I'm getting this error now
@Mael has reached level 2. GG!
also getting this unless I send the anchor down to the OverlayCSUIContainer component. anchor is still the html element and not the result of the getOverlayAnchor function (not sure if this is intended or not)
Ooh yeah - you need to send the anchor down as a props otherwise the built-in container will not work
I think they are the same error, will update the docs on that as well