write wx is not allowed
发布于 4 年前 作者 yan04 17816 次浏览 来自 问答

我在项目中使用了微信同声传译插件。

export default class extends wepy.app {
 
  config = {
 
    plugins: {
 
      WechatSI: {
 
        version: '0.0.7',
 
        provider: 'wx069ba97219f66d99'
 
      }
 
    }
 
  }
 
}

并且使用了Fundebug的小程序错误监控服务:

var fundebug = require('fundebug-wxjs')
 
fundebug.apikey = 'API-KEY'

发现出现了这样的报错:

[non-writable] write wx is not allowed when using plugins at app.json.
 
[non-writable] write App is not allowed when using plugins at app.json.
 
[non-writable] write Page is not allowed when using plugins at app.json.

Fundebug重写了wx, App以及Page。

当我将微信同声传译注释掉,这个错误就不会出现了。另外,不使用wepy框架的话也不会有这个问题。

环境

  • Platform: 开发者工具

  • Platform version: v1.02.1806120

  • wepy version: 1.7.1

  • other version: 微信同声传译 0.0.7

2 回复

wechatide://minicode/D00BgjmV7o0Z

需要appid,且需要导入WechatSI插件

谢谢!

复现这个问题很简单:

  • 调试基础库使用2.0.9和2.1.0 

  • 同时使用 WecahtSI(0.7.0)和Fundebug(0.5.0)


基础调试库改为2.0.8的时候没有问题

回到顶部