alibaba / alibaba/browser-extension-kit

background报错:Cannot read properties of undefined (reading 'crypto')

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
119
Forks
7
PR merge metrics
No merged PRs in 30d

Description

我的脚手机使用的plasmo
按照文档写了一个示例以后报错
![image](https://user-images.githubusercontent.com/36886269/188874531-6d9ea47e-51dc-4bfc-9247-abd98a18ffae.png)
代码如下
![image](https://user-images.githubusercontent.com/36886269/188874703-eb928771-dd42-4f1f-8f2e-2828df89ecfa.png)
![image](https://user-images.githubusercontent.com/36886269/188874726-6df34555-1386-48aa-91e1-90b3b0e56985.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented Plasmo example in the background context and inspect the code shown in the issue screenshots around the crypto access. Compare the runtime error with the documented example; done means the example no longer reports "Cannot read properties of undefined (reading 'crypto')".

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.