Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.js错误: TypeError: Cannot read property 'sendBeacon' of undefined #615

Open
jianghuosiliuying opened this issue Mar 28, 2023 · 5 comments
Labels

Comments

@jianghuosiliuying
Copy link

vConsole Version: v3.15.0
开发工具报错sendBeacon未定义,项目使用HBuilderX创建,微信自带的vconsole不支持网络请求查看,得自行引入?

@Giggledefy
Copy link

uniapp安卓真机运行,一样的错误。

image

@Maizify
Copy link
Collaborator

Maizify commented May 22, 2023

微信小程序自带vConsole,并不需要(也不能)自行引入vConsole,否则会报错。
不过保险起见我还是给标题里的错误加了个保护。

@hootigger
Copy link

uniapp iOS端一样错误, vue3 ts

@tengqingya
Copy link

tengqingya commented Aug 11, 2023

uniapp 安卓端,一样的错误,错误版本v3.15.1,vue2,引入方式
import VConsole from '@/static/vconsole.js'; //手动下载的最新版放到本地
const vConsole = new VConsole();

不过看来只能uniapp h5版本用用了,由于没有window对象,希望官方啥时候能搞个兼容uniapp安卓和ios版本的哦。
ps:在uniapp的安卓端使用webview组件,是可以使用vconsole的!如果实在想用可以手动嵌套一个webview。

@xcondor
Copy link

xcondor commented Oct 8, 2023

Hybrid 开发方式,引入vconsole3.15.1版本后,fetch请求pdf文件,文件流会被阻断,接口提示超时,报Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants