app.wpy中config声明使用的插件"plugins"后报错了?我还没有使用呐
发布于 7 年前 作者 zhulei 1301 次浏览 来自 问答

真机基础库版本:2.8.3

开发工具调试基础库:2.8.2

报错信息如下:

[non-writable] modification of global variable “Promise” is not allowed when using plugins at app.json.

定义插件代码如下:

“plugins”: {

“XSEngine”:{

“version”: “1.1.1”,

“provider”: “wx72xxxxxxxxxxxx”

}

}

开发工具和手机预览调试都报错,但不影响小程序运行。

请教下各路大神,为什么会这样?

4 回复

把你的基础库调到 >= 2.6.3

Promise 依然不允许修改。这个应该是 wepy 引起的,我不确认是不是和 wepy 版本有关,请参考 wepy 相关文档。

已解决~

wepy-async-function 升级至最新版本即可

你好,麻烦提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html),我们看下

回到顶部