🧩 Plasmo Developers

PD

🧩 Plasmo Developers

Join the community to ask questions about 🧩 Plasmo Developers and get answers from other members.

Join

👾extension

👟framework

🔰newbie

🦉pallas

Svelte - Unexpected token (parse-error)

It seems like Parcel fails to parse this in a Svelte popup: ```ts const errorMessage = { youtube: "Cannot assign. Used by YouTube", alreadyInUse: "Cannot assign. Already in use"...

Error opening a Svelte popup

I was greeted with this dogeconfused

Multiple Svelte CSUI injections

Sometimes, I'd like my extension to inject multiple components onto the web page, and some other times the web page is simply an SPA, so it happens that I will end up injecting multiple CSUIs Any projection on when Plasmo will support it?...

Best way to store JSON with storage API

Hello 😁 ! I am going to store some configuration data (in JSON) using the storage API. I am wondering what is the best way to do it using the usestorage hook. I was thinking of somehow using the onInit argument to parse the JSON but I'm not sure if that will work.

HMR Very Slow

I have to save my files a few times, and then still wait a while before any changes are reflected. The tab reloads, but the changes aren't present, any ideas?

getStyle doesn't work

I have content.ts: ```ts export const config: PlasmoContentScript = {...}; export const getStyle: PlasmoGetStyle () => {...

How do I check the size of my Plasmo cache

The cache is located in .plasmo/cache. The size of these files are the size of your cache.

How do I use Plasmo Canary?

What is Plasmo Canary and how do I use it?

Failed to connect to the HMR server

Plasmo's version is 0.60.0

Styling React components and ShadowDOM usage

Morning y'all, long time no see. Quite a while ago I removed the ShadowDOM implementation and injected the content script directly onto the root tree. I don't remember exactly why, I think it was an issue with font loading that I only got around when not using the shadow DOM. Anyways, that decision has ended up biting my ass back, and now I'm dealing with a lot of inconsistencies in the styling between sites due to the site styles bleeding into the extension. I've removed the getRootContainer export from my content script, and it's now in the Shadow DOM again... But it has absolutely no styling. Not from the site, not from the extension, nothing. It's just the HTML from the components....

Cannot run `plasmo dev`

Started happening after I upgraded to version 0.59.3-alpha-0 ```yaml [ThrowableDiagnostic [Error]: The plugin "@parcel/reporter-dev-server" is not compatible with the current version of Parcel. Requires "^2.8.0" but the current version is "2.0.0-nightly.1210+334e8a5ca".] { diagnostics: [ {...

How to use AMO's API to push an update

A folk at https://github.com/mozilla/addons/issues/1446 tried to help by referring to https://github.com/mozilla/web-ext/blob/master/src/util/submit-addon.js, but I couldn't get it to work despite copying the lines of putVersion Any idea what is missing?...

CSUI without ShadowDOM

From @tyn1998 Ref: https://discord.com/channels/946290204443025438/946290204904390690/1044536470133809182 I'm developing an extension called which injects some charts to GitHub pages. Recently I consider to refactor the project with the great framework Plasmo and I read about the article about "CSUI" which points out that Plasmo makes use of shadowDOM to inject the UI, so host page's stylesheet won't affect the CSUI we inject into the page....

Cannot start Plasmo

I have a project in which I can run plasmo But, on another, it just gives me the error
plasmo: The term 'plasmo' is not recognized as a name of a cmdlet, function, script file, or executable program.
plasmo: The term 'plasmo' is not recognized as a name of a cmdlet, function, script file, or executable program.
...