🧩 Plasmo Developers

PD

🧩 Plasmo Developers

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

Join
Ffrostman5/2/2024

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?...
Rrosemont5/2/2024

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"...
Jjoseangel_sc4/30/2024

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
Nnithur4/26/2024

anyone using authjs with plasmo

If yes, how did you go about this?
VValentin4/19/2024

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 ```...
Nnithur4/15/2024

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.
TTomMayer4/11/2024

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!...
AAnker4/10/2024

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?
Aavi123/28/2024

Flutter support

It would be interesting to see Plasmo supporting Flutter natively
LLoXatoR3/19/2024

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?...
AAsif3/17/2024

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 ```...
Vviktassen3/15/2024

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";...
Aadi873.3/13/2024

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?
TThomato3/10/2024

No styling for options.tsx

I have a basic options page written in TypeScript and styled via Tailwind CSS that displays perfectly within the popup. I saved all of the code to an OptionsPage.tsx, verified it displays fine, then used it in options.tsx: ```ts import React from 'react' import OptionsPage from '~pages/OptionsPage'...
Ccholebhature78873/10/2024

Shadcn dosnt seem to work in content script ui

I have been trying to get Shadcn to work with CSUI. I followed almost everything from this server as well as the documentation, but it just doesn't seem to work. tailwind seems to work fine. am attaching some code can someone please help me out index.tsx ```tsx import cssText from "data-text:~/contents/style.css"...
Jjgoon3/8/2024

support for multiple assets

trying to do a simple toggle icon extension (click extension to toggle icon) but it seems like only one icon ever included in build. is this possible?
Rrpdn8n3/8/2024

Supabase url and anon key exposed

I am a newbie exploring Plasmo for supabase authentication. The public url and anon keys are added in the .env file. On building the file, I find the supabase url and anon keys are exposed in popup.js, which can be traced in Devtool sources. The bad actors may use the url and anonkey to exploit the auth.
What are the best ways to deal with supabase auth without exposing the url and key? Am I missing something?...
Aavi123/8/2024

Firefox dev server manifest warnings

The ```json { "content_security_policy": { "extension_pages": "script-src 'self' http://localhost;object-src 'self';"...
No description
SBSir. Braden19963/7/2024

import url no longer working

Hey folks 👋🏻 just upgraded our extension at Attio to the latest version of Plasmo (0.85). It seems we can no longer include HTML into the bundle by doing: import doc from “url:test.html”. I’ve instead included the file as a web_accessible_resource, but the TS it imports can of course not be found as it’s no longer bundled. Is there an easy way to include this in the output?...
Aavi123/6/2024

Parallel dev servers

I need to both run plasmo dev --verbose and plasmo dev --verbose --target=firefox-mv3, but when I run the latter I get ``` 🔵 INFO | Starting the extension development server... 🟡 1 | Starting dev server on localhost:52111, HMR on localhost:52112... 🟡 2 | Creating Manifest Factory......
Next