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!
4 Replies
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": "."
}
}
Try using the ts extension instead.
like before i didnt need to do that, when i set it up, its just pnpm install, pnpm dev right?
yeah that should be the case :d