🧩 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

cloning a plasmo repo and running it on a different device

Hello! really stupid question but how do i go about cloning my plasmo project onto a diff device? i cloned it on my desktop, which is setup with node and everything, but i can't just npm i and go. is there some sort of npx command or something i need to run before hand? i tried running npx plasmo init but that didn't seem to work (same result as npm i) so I'm not sure what the reproduction steps are...

Unable to compile new background files

I created a new directory called auth with a ts file called login.ts. login content: ```typescript import type { PlasmoMessaging } from "@plasmohq/messaging";...
No description

500 error on the itero platform

I'm trying to publish through itero platform but when I attempt to add a key there is a 500 error. UI is misleading as well because it says it was saved. Anyone else experiencing this issue?...
No description

Build failing: Cannot resolve/load gen-assets/iconXX.plasmo.png

Okay, here's a draft message you can adapt and post to the Plasmo Discord server. It summarizes the issue and the steps you've already taken: Subject: plasmo dev failing to resolve icons despite package.json configuration ---...

Google authentication in plasmo using supabase

Has anyone tried to add Google auth in a plasmo chrome extension using supabase ?? If so I need some help....

tailwindv4 integration with Plasmo

I just start using plasmo, when i try to plugin tailwind v4 so things are not seems to be working. is there anyone help me on this?

Plasmo with appwrite

Has anyone used appwrite database in plasmo? I tried to do it and it says unsupported platform. .can anybody guide?

Can i use plasmo to create a chrome extension that i want private distrubtion?

I want to create a chrome extension only for my company, only people with the company domain can install it. is this something i can do on plasmo?

Best way to send a message from popup to content and get a response in Plasmo?

Hi everyone, I'm working on a Plasmo extension and trying to send a message from the popup to the content script and receive a response back in the popup. I read that one approach is to use storage as an intermediary—where the content script updates the storage and the popup listens for changes. However, since storage has limitations, I'd like to explore other options. Would chrome.runtime.sendMessage or chrome.tabs.sendMessage be a better approach for direct communication? Or is there another recommended method in Plasmo for handling this?...

Get data from tab

I discover plasmo and extension dev, i wanted to know how to get a button and click it, get a specific text and write something in input field. I tried this for get button : ```ts import React from 'react'; ...

vue style

when use vue with the plasmo, make the vue component that use <style lang="less" scoped>, the style not work!

CRX key for Prod

I have developed my extension. and I want to publish it to the chrome web store. at the development stage I used the crx key to test the redirect options page with the supabase. do I have to remove it first from the .env and package.json and then run the pnpm build?. please help. ```.env CRX_ID=xxxxxx CRX_KEY=xxxxxxxxxx...

Redux DevTools

Not working... Here is my configuration:...
No description

How can I work with websites that have JavaScript disabled?

Hello everyone! I'm creating an extension for the first time, and my translator app works with content selection. However, it sometimes works and sometimes doesn't with website content. How can I fix this? Is it possible to request permission or use another approach?

Append content ui to an existing element on the page

I have a react component I will like to append to an element on the page, but I am unable to figure how to get it done using Plasmo. for example, below is how I do it in a vite project. I'll appreciate if someone can point me to a guide or example project `<imports here> const EXTRASCAN_ROOT_ID = "extrascan-root";...

Scrape many pages with plasmo

Hello, i’m new to the framework and I feel a little bit overwhelmed. So I decided to ask the Plasmo people directly. So my need is to scrape a few pages as the browser owner, extract a JSON and provide it as a download. Since the website is blocked by authentication shenanigans and that my use case rely on authenticated users to extract the data i’ve opted to run a web extension. I’ve been able to use the PlasmoCSConfig and PlasmoGetInlineAnchor to add a button on the website. That’s great. I’ve also been able to change the current url, upon click event. I’ve also read and explored a little bit around WORLD script injection....

Mount UI content script on extension click

I feel incredibly silly not being able to work this out without weird workarounds, but what is the "native" way to inject ui into the main world / page you are seeing in Plasmo? I'm new to the chrome extension game, and i could get a background script to inject ui on click, but i cant seem to figure out how to inject the ui on extension click with using the whole mount react component thing with anchors etc. Any resources beyond just the docs.plasmo on how to mount the components?...

Javascript react starter

I want to use Plasmo with javascript react and not typescript is there any way i can do that without ts, because all of my tech stack is js based and i do not want to write ts in extension. Is there any way i can setup plasmo with js only

Issue: "Extension runtime is not available" with PlasmoCSConfig in Content Script

Hi everyone,
I’m encountering an issue while working with a framework extension. My goal is to inject a content script on a specific website and enable communication between the content script and the background script. Here's the flow I want to achieve:
1. When the user visits https://xyz.com/abc/*, the content script is injected.
2. The script adds a button to the page. ...

Login sync between popup and content using firebase auth

Can you please explain how I can manage to sync the state of login between popup.tsx and content.tsx using firebase auth? I am working with the framework --with-firebase-auth , and the login there works, however I would like to inject button in the main world (using content.tsx), and onclick save data to firestore, and I need to be authenticated from in the content.tsx. From some reason the popup and content does not share the state of auth....
Next