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

日常踩坑记录(1) #1

Open
Mario34 opened this issue May 2, 2020 · 6 comments
Open

日常踩坑记录(1) #1

Mario34 opened this issue May 2, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@Mario34
Copy link
Owner

Mario34 commented May 2, 2020

日常踩坑记录

记录日常的踩坑,在找到解决方案后做个记录

Eslint异常报错

背景:在一个老的项目中,使用的是 eslint + @typescript-eslint/parser

问题描述:eslint有时会出现异常的校验,尽管代码符合规范,并且自动修复会使代码完全混成一坨。最后定位到是@typescript-eslint/parser 的问题,升级本本就解决了issues

特此记录

Taro hooks(函数式组件) 访问组件实例

最初的问题是在调用createVideoContext createAudioContext createMapContext等方法时,第二个参数时当前组件的实例。

函数式组件如何访问组件实例issuesuseScope官方文档
const $scope = useScope()
$scope 指向该组件对应的小程序组件实例

@Mario34 Mario34 added the bug Something isn't working label May 3, 2020
@Mario34
Copy link
Owner Author

Mario34 commented May 6, 2020

小程序wx.chooseImage直接返回fail cancel?

调用wx.chooseImage打开选择图片的界面之后不要选择,按手机的home键返回桌面,然后再打开小程序,再次调用wx.chooseImage,就会直接返回fail cancel,界面没有任何反应,这个在我的和朋友的手机都是必现,用户也有很多反馈,都是安卓手机,我用官方客服小程序测试也是同样的问题,微信是7.0.13版本
https://developers.weixin.qq.com/community/develop/doc/0008ecfe9dcc20e59a2ab384851000

等待官方修复

@Mario34
Copy link
Owner Author

Mario34 commented May 7, 2020

微信小程序ios平台静音状态下无法播放音频

表现:ios平台静音状态下无法播放音频
解决方案:参考wx.setInnerAudioOption文档,配置obeyMuteSwitch: false

@Mario34
Copy link
Owner Author

Mario34 commented May 8, 2020

Taro框架中使用mta(腾讯移动统计)无法自动上报

Taro项目中按照文档集成,发现自动上报并没有生效。考虑看下源码,实现一个taro版本的mta
社区问题反馈

Taro的微信版不会触发register Page事件,所以劫持Page的写法都不会生效。
不过Taro的支付宝版支持

@Mario34
Copy link
Owner Author

Mario34 commented May 25, 2020

微信小程序MovableArea、MovableView在特定情况下渲染的bug

微信小程序MovableArea、MovableView在特定情况下渲染的bug,并且导致音频播放声音异常(无声或声音很小)

@Mario34
Copy link
Owner Author

Mario34 commented May 28, 2020

微信小程序video、camera 组件同时存在,IOS 视频只使用听筒播放声音

视频电话需求在播放视频的同时调起摄像头 IOS 视频只使用听筒播放声音

@Mario34
Copy link
Owner Author

Mario34 commented Jun 16, 2020

node-gyp相关错误

issue
社区方案

@Mario34 Mario34 changed the title 日常踩坑记录 日常踩坑记录(1) Aug 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant