serversideup/webext-bridge

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

Opened this issue · 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 模版创建的就能复现这个问题

同样的问题

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