Invalid value for 'content_scripts[0].matches[0]': Empty path. Could not load manifest. Please help!

I was in dev mode editing the contents/test_leetcode.tsx file import type { PlasmoContentScript } from "plasmo" export const config: PlasmoContentScript = { matches: ["https://leetcode.com"] } window.addEventListener("load", () => { console.log( "Peekaboo! im testing" ) //is this valid? i think so // document.body.style.background = "#1A202C" }) I uncomment the above code, and it broke the extension, now when I try to load unpacked I can't run the extension, any help is really appreciated!
No description
4 Replies
Andy
AndyOP•2y ago
Ok, so i just made a new extension by git cloning my old one and it wokrs now? just one small issue is that I have to add import react from "React" and in tsconfig, I have to add "jsx": "react", "compilerOptions": { "jsx": "react", "paths": { "~": [ "./" ] }, "baseUrl": "." } }
lab
lab•2y ago
Try using the ts extension instead.
Andy
AndyOP•2y ago
like before i didnt need to do that, when i set it up, its just pnpm install, pnpm dev right?
lab
lab•2y ago
yeah that should be the case :d
Want results from more Discord servers?
Add your server