Wrong offered argument in PlasmoMountShadowHost
https://github.com/PlasmoHQ/plasmo/blob/51010593098d2871dc49c93b0cb22ba415221298/cli/plasmo/src/type.ts#L55-L60
compared to
https://github.com/PlasmoHQ/examples/blob/de42aa8fe74e2b025fa582112d59795c7c04ba4e/with-svelte/contents/plasmo-inline.svelte#L15-L20
GitHub
plasmo/type.ts at 51010593098d2871dc49c93b0cb22ba415221298 · Plasmo...
🧩 The Browser Extension Framework. Contribute to PlasmoHQ/plasmo development by creating an account on GitHub.
GitHub
examples/plasmo-inline.svelte at de42aa8fe74e2b025fa582112d59795c7c...
🔰 Example projects that demonstrate how to use the Plasmo Framework and integrate with popular tools - examples/plasmo-inline.svelte at de42aa8fe74e2b025fa582112d59795c7c04ba4e · PlasmoHQ/examples
![](https://utfs.io/f/f3829117-877c-408e-b7c5-f11298a54837-1nq2cb.png)
4 Replies
oh damn the svelte example is outdated xd
How does the
mountShadowHost
should look like then?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.
Should look like that - there's some PR to fix the svelte config as well, will incorporate this in that as well