Skip to content

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

@sfyang2

Description

@sfyang2

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions