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

function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[] #21

Open
bl382137136 opened this issue Jan 10, 2021 · 19 comments

Comments

@bl382137136
Copy link

return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
^^^^^^

SyntaxError: Illegal return statement
at new Script (vm.js:83:7)
at VM.run (C:\Users\DELL\node_modules\vm2\lib\main.js:834:13)
at z (C:\Users\DELL\Desktop\wxappUnpacker-master\wuWxml.js:399:16)
at z (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:280:21)
at catchZGroup (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:16:2)
at catchZ (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:21:33)
at getZ (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:280:3)
at wu.get.code (C:\Users\DELL\Desktop\wxappUnpacker-master\wuWxml.js:382:9)
at ioLimit.runWithCb (C:\Users\DELL\Desktop\wxappUnpacker-master\wuLib.js:103:14)
at agent (C:\Users\DELL\Desktop\wxappUnpacker-master\wuLib.js:66:23)

@scrapstation
Copy link

解决了吗

@Left-Hai
Copy link

+1

3 similar comments
@cmhello88
Copy link

+1

@izuojian
Copy link

+1

@MrDon94
Copy link

MrDon94 commented Mar 11, 2021

+1

@xdmjun
Copy link
Owner

xdmjun commented Mar 11, 2021

please contact to blogger

@xdmjun
Copy link
Owner

xdmjun commented Mar 17, 2021

return function(env,dd,global){$gwxc=0;var root={"tag":"wx-page"};root.children=[]
^^^^^^

SyntaxError: Illegal return statement
at new Script (vm.js:83:7)
at VM.run (C:\Users\DELL\node_modules\vm2\lib\main.js:834:13)
at z (C:\Users\DELL\Desktop\wxappUnpacker-master\wuWxml.js:399:16)
at z (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:280:21)
at catchZGroup (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:16:2)
at catchZ (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:21:33)
at getZ (C:\Users\DELL\Desktop\wxappUnpacker-master\wuRestoreZ.js:280:3)
at wu.get.code (C:\Users\DELL\Desktop\wxappUnpacker-master\wuWxml.js:382:9)
at ioLimit.runWithCb (C:\Users\DELL\Desktop\wxappUnpacker-master\wuLib.js:103:14)
at agent (C:\Users\DELL\Desktop\wxappUnpacker-master\wuLib.js:66:23)

把包发我看看吧

@sbigtree
Copy link

sbigtree commented Jul 6, 2021

@xuedingmiaojun 解决了吗

@781732825
Copy link

+1

@xdmjun
Copy link
Owner

xdmjun commented Jul 9, 2021

@zhongshuiping
Copy link

大佬 解决了?

@zhangdaren
Copy link

解决了吗?

@biggfish3147
Copy link

遇到相同的问题!没有找到解决方案。

定位到报错位置\node_modules\vm2\lib\main.js:932:13,vm.Script类的实例包含预编译脚本,构造方法参数scriptCode是要编译的JS代码,后一个参数是可选的配置对象。报错提示说要编译的JS代码出现语法错误。如果分析不错,说明脚本没有适配这种异常类型。

script = new vm.Script(scriptCode, {
filename: useFileName,
displayErrors: false,
importModuleDynamically
});

PS 另一种十分相似的报错可以通过更换脚本解决,但仅适用部分小程序。https://blog.csdn.net/wq57885/article/details/101113017

@xdmjun
Copy link
Owner

xdmjun commented Dec 19, 2021

大佬 解决了?

已解决

@zhangdaren
Copy link

大佬 解决了?

已解决

大佬怎么解决的?

@zmqcherish
Copy link

有解了吗,有的包能成功解,有的报错

@sevensky
Copy link

大佬 解决了?

已解决

怎么解决啊 大佬

@scrapstation
Copy link

大佬 解决了?

已解决

怎么解决啊 大佬

大佬披星戴月搞定的,可能免费告诉你吗?

@Haojinlong555
Copy link

大佬怎么解决的啊

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

No branches or pull requests