You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The load unpacked extension works when built with plasmo dev, however if I use plasmo build the extension does not do anything and checking the extension error logs I get the error 'Uncaught Error: Cannot find module '@plasmohq/storage''
What happened?
I'm using google chrome.
The load unpacked extension works when built with plasmo dev, however if I use plasmo build the extension does not do anything and checking the extension error logs I get the error 'Uncaught Error: Cannot find module '@plasmohq/storage''
versions
"@plasmohq/storage": "^1.12.0",
"plasmo": "0.89.3"
file structure:
storage.ts
`import { Storage } from "@plasmohq/storage"
export const storage = new Storage()`
content.ts:
`export var connectionList: ConnectionList = {}
window.addEventListener("load", () => {
console.log("LinkedIn connection categorizer extension loaded.")
// set timeout to wait for the page to load
setTimeout(async () => {
connectionList = (await storage.get("connectionList")) ?? {}
injectCategorize()
addMutationObserver()
}, 1000)
})
window.addEventListener("beforeunload", () => {
storage.set("connectionList", connectionList)
})`
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
Uncaught Error: Cannot find module '@plasmohq/storage'
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: