🧩 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

"Uncaught ReferenceError: importScripts is not defined"

i get this when importing a component but works otherwise content script ui...

how to reuse components in from existing nextjs project

i created a plasmo project within an existing next js directory so that i could reuse some components from the src/app dir that next js uses but whenever i import i get "invalid hook" error something about react being called twice? but if i copy the component i want to reuse even though, it also imports from the src/app for child components it works fine....

How to fix "WARN | Unable to find any entry files. The extension might be empty"

Hi, I keep having this error after keeping the project inactive for a while, anyone face this problem before? The extension event cannot be clicked now and I guess this is the issue. My project is newly created without heavy content. only a simple content.tsx react component and a popup.tsx. Thanks

Webpage with an element called 'process' broke Plasmo framework.

Hello, I faced a weird situation, that the runtime crashed due to an element called 'process' on a webpage. and that caused a undefined error, so all the rest stopped working. How can I solve this? I tried everything on the content script but of coz the runtime executes way before it so it won't work.
No description

AudioWorklet not loading in CSUI, works in popup

Hey guys, I'm having an issue using AudioWorklet in the context of Content Script UI. We're having trouble connecting our audio processor (with worklet.addModule) in our CSUI component (but not in our popup.tsx)....

Parcel version outdated

Plasmo's parcel version is outdated and has high vulnerability. Current version is set to 2.9.3, but this uses an outdated msgpackr version. Is there any plan to fix this? Unfortunately this is a large security concern and blocks our use. Github scanner advisory:...

How to adjust the with-firebase-auth to work with Arc (other chromium browsers)

I'm encountering issues with the example for using Firebase Authentication when extending the scope beyond Google Chrome. Has anyone successfully implemented it on other Chromium-based browsers? It appears the problem stems from insufficient SDK support in these browsers. I'm considering either developing my own OAuth popup or experimenting with WebAuthFlow. Has anyone had success with either of these approaches?...

How to create a new tab from a router?

Given an index.tsx: ex. import { Route, Routes } from "react-router-dom" import { Login } from "~newtab/login"...

just out of curiosity, where does the storage live?

why does it work? i cannot find any cookie or localstorage where the keys i setup from plasmo are, it's pretty cool but i dont understand where that data is

anyone using authjs with plasmo

If yes, how did you go about this?

Error with messaging

Hey, im trying to send a message from a content script in the main world to the background. For that I have 2 small scripts, that I copied mainly from the docs, but I still cant get it to work. Why? /src/background/messages/ping.ts ```...

Floating-ui with plasmo?

Anyone managed to use floating-ui with Plasmo? I have been trying to inject a floating modal that can focus fully on the modal with floating-ui but with no avail. If you have used it before please share some tips. Thanks.

CSUI - detecting container removal ?

Hey! I use a content script for CSUI and can successfully add my UI. Up to the use case of my app the CSUI can be removed by user interactions on the target page. How can i automatically (or programmaticly) reinject the react container when it was deleted? The docs says there is a removal detection but is not very specific about it... does anyone have a hint for me? Thank you very much!...

env variables in BGSW?

Is there a way to access a non-public .env in background service workers akin to server-side in Next? Or is BGSW running client-side as well so you always need to pre-phrase it with PLASMO_PUBCIC?

Flutter support

It would be interesting to see Plasmo supporting Flutter natively

How to customize parcel config?

Hi everyone, I am trying to use a react-native based library called react-native-reanimated. This library has some components that are also supported for the web, and they write 2 files, for example a measure component will have measure.tsx and measure.web.tsx file. When I use this library in a nextJS project, it bundles the correct file for web, which is measure.web.tsx, however with plasmo, it seems like it only bundles the files with extensions .ts or .js etc..., and skips the equivalent .web.* file. How do I make parcel make the files that end in .web.* take precendence over .js|ts(x) files?...

Tab page injecting CSS into website's runtime

I am devloping my sign in option with tab pages. But if i style the body this directly affect website body. How to prevent this? I don't want to inject my CSS into website. tabs/signin.tsx ```...

MUI styles with PlasmoGetInlineAnchorList

Styles are added only for last shadow-root. Please tell me how to make it work. // Plasmo import createCache from "@emotion/cache";...

how do you get a privacy policy when uploading to chrome web store?

Most generators that I have searched for online require a link to your website to put in, but since my store isn't live yet, there is no link. How would I do this?