webext-bridge icon indicating copy to clipboard operation
webext-bridge copied to clipboard

在 Vite中使用报错 TypeError: Cannot read properties of undefined (reading 'fingerprint')

Open sfyang2 opened this issue 1 year ago • 2 comments

// background.ts

import { sendMessage } from "webext-bridge/background"; sendMessage("test",{data:"test"}) //error: TypeError: Cannot read properties of undefined (reading 'fingerprint')

//demo //使用 vite-vue3-browser-extension-v3 模版创建的就能复现这个问题

sfyang2 avatar Dec 27 '23 17:12 sfyang2

同样的问题

quninnd avatar Jan 08 '24 01:01 quninnd

same problem, check #57. be careful with import.

frei-l avatar May 20 '24 11:05 frei-l