小程序
小游戏
企业微信
微信支付
扫描小程序码分享
升级了微信者工具(版本为1.05.2107221),原来可编译的项目抛出[ appservice 生成错误]是什么问题?
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
看下具体报错
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
dom-parser这个文件
变量名重复声明,导致报错,改下变量名就可以
我也遇到同样的问题,最后怎么处理的?
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
看下具体报错
[ appservice 生成错误] sdk/libs/xmldom/dom-parser.js: file: sdk/libs/xmldom/dom-parser.js
unknown: Identifier 'DOMParser' has already been declared. (255:8)
253 | var XMLSerializer = exports.XMLSerializer = require('./dom').XMLSerializer;
254 | exports.DOMParser = DOMParser;
> 255 | var DOMParser = {
| ^
256 | DOMImplementation: DOMImplementation,
257 | XMLSerializer: XMLSerializer,
258 | DOMParser: DOMParser
VM142:5 app.js错误:
Error: module "sdk/libs/xmldom/dom-parser" is not defined
at require (VM152 WAService.js:2)
at VM152 WAService.js:2
at strophe.js? [sm]:21
at require (VM152 WAService.js:2)
at VM152 WAService.js:2
at app.js? [sm]:2
at require (VM152 WAService.js:2)
at <anonymous>:3:9
at doWhenAllScriptLoaded (<anonymous>:4721:21)
at Object.scriptLoaded (<anonymous>:4749:5)
(anonymous) @ VM142:5
doWhenAllScriptLoaded @ VM27:4721
scriptLoaded @ VM27:4749
(anonymous) @ VM27:4774
Promise.then (async)
(anonymous) @ VM27:4795
(anonymous) @ VM27:4799
loadScripts @ VM13 assubloader.js:1
async function (async)
loadScripts @ VM13 assubloader.js:1
loadAppResourceScripts @ VM13 assubloader.js:1
(anonymous) @ instanceframe?s=1630905474694&autoload:5
VM18 WAService.js:2 thirdScriptError
module "sdk/libs/xmldom/dom-parser" is not defined
Error: module "sdk/libs/xmldom/dom-parser" is not defined
at require (http://127.0.0.1:42909/appservice/__dev__/WAService.js?t=wechat&s=1630905469307&v=2.11.0:2:1812259)
at http://127.0.0.1:42909/appservice/__dev__/WAService.js?t=wechat&s=1630905469307&v=2.11.0:2:1812010
at http://127.0.0.1:42909/appservice/sdk/libs/strophe.js:26:14
at require (http://127.0.0.1:42909/appservice/__dev__/WAService.js?t=wechat&s=1630905469307&v=2.11.0:2:1812400)
at http://127.0.0.1:42909/appservice/__dev__/WAService.js?t=wechat&s=1630905469307&v=2.11.0:2:1812010
at http://127.0.0.1:42909/appservice/app.js:6:1
at require (http://127.0.0.1:42909/appservice/__dev__/WAService.js?t=wechat&s=1630905469307&v=2.11.0:2:1812400)
at <anonymous>:3:9
at doWhenAllScriptLoaded (<anonymous>:4721:21)
at Object.scriptLoaded (<anonymous>:4749:5)
errorReport @ VM18 WAService.js:2
thirdErrorReport @ VM18 WAService.js:2
(anonymous) @ VM18 WAService.js:2
f @ VM18 WAService.js:2
o @ VM18 WAService.js:2
c @ VM8 asdebug.js:1
window.onerror @ VM12:1
doWhenAllScriptLoaded @ VM27:4721
scriptLoaded @ VM27:4749
(anonymous) @ VM27:4774
error (async)
t.default @ VM12:1
137 @ VM12:1
n @ VM12:1
(anonymous) @ VM12:1
(anonymous) @ VM12:1
dom-parser这个文件
变量名重复声明,导致报错,改下变量名就可以
我也遇到同样的问题,最后怎么处理的?