useStorage custom storage instance error

Hi I tried using this code example from documentation
const [hailingFrequency] = useStorage({
key: "hailing",
instance: new Storage({
area: "local"
})
})
const [hailingFrequency] = useStorage({
key: "hailing",
instance: new Storage({
area: "local"
})
})
but I'm getting this error
No description
2 Replies
Jackpot.!
Jackpot.!•12mo ago
error if i try to run it on option.jsx page
No description
Jackpot.!
Jackpot.!•12mo ago
okay i did a little digging and found same issue https://github.com/PlasmoHQ/plasmo/discussions/696#discussioncomment-6514990 I didn't add
import { Storage } from "@plasmohq/storage"
import { Storage } from "@plasmohq/storage"
it would be nice if the example in docs also had that import
No description
Want results from more Discord servers?
Add your server