Uncaught Error: Cannot find module '@plasmohq/storage' (works in prod not dev)

I can't use plasmo storage with a prod build but it works on dev. I'm super confused.
6 Replies
hb
hbOP•2mo ago
@Expert can anyone help with this, seems pretty bad...
GPRD
GPRD•2mo ago
Hello @hb Did you mean local storage or chrome storage?
hb
hbOP•2mo ago
chrome sync storage, i got it fixed tho: https://github.com/PlasmoHQ/plasmo/issues/1123
GitHub
[BUG] Uncaught Error: Cannot find module '@plasmohq/storage' · Issu...
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...
hb
hbOP•2mo ago
I had this in my package.json which broke everything:
"engines": {
"npm": ">=7.0.0",
"node": ">=16.0.0"
},
"engines": {
"npm": ">=7.0.0",
"node": ">=16.0.0"
},
GPRD
GPRD•2mo ago
oh, that's right. I think so too.
hb
hbOP•2mo ago
do you know why it might have happened?
Want results from more Discord servers?
Add your server