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

ReferenceError [Error]: window is not defined #28

Open
moming159 opened this issue Apr 24, 2021 · 5 comments
Open

ReferenceError [Error]: window is not defined #28

moming159 opened this issue Apr 24, 2021 · 5 comments

Comments

@moming159
Copy link

wxappUnpacker-master/node_modules/vm2/lib/main.js:845
throw this._internal.Decontextify.value(e);
^
ReferenceError [Error]: window is not defined
at setCssToHead_wxfa43a4a7041a84de (vm.js:31:25)
at vm.js:82:1
at Script.runInContext (node:vm:141:12)
at VM.run (/.../wxappUnpacker-master/node_modules/vm2/lib/main.js:843:53)
at /.../wxappUnpacker-master/wuWxss.js:267:42
at /.../wechat/wxappUnpacker-master/wuLib.js:103:14
at agent (/.../wxappUnpacker-master/wuLib.js:66:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:75:3)

@xdmjun
Copy link
Owner

xdmjun commented Apr 24, 2021

wxappUnpacker-master/node_modules/vm2/lib/main.js:845
throw this._internal.Decontextify.value(e);
^
ReferenceError [Error]: window is not defined
at setCssToHead_wxfa43a4a7041a84de (vm.js:31:25)
at vm.js:82:1
at Script.runInContext (node:vm:141:12)
at VM.run (/.../wxappUnpacker-master/node_modules/vm2/lib/main.js:843:53)
at /.../wxappUnpacker-master/wuWxss.js:267:42
at /.../wechat/wxappUnpacker-master/wuLib.js:103:14
at agent (/.../wxappUnpacker-master/wuLib.js:66:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:75:3)

私聊解决

@binz0416
Copy link

wxappUnpacker-master/node_modules/vm2/lib/main.js:845
throw this._internal.Decontextify.value(e);
^
ReferenceError [Error]: window is not defined
at setCssToHead_wxfa43a4a7041a84de (vm.js:31:25)
at vm.js:82:1
at Script.runInContext (node:vm:141:12)
at VM.run (/.../wxappUnpacker-master/node_modules/vm2/lib/main.js:843:53)
at /.../wxappUnpacker-master/wuWxss.js:267:42
at /.../wechat/wxappUnpacker-master/wuLib.js:103:14
at agent (/.../wxappUnpacker-master/wuLib.js:66:23)
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:75:3)

私聊解决

我也碰到这个问题了,怎么解决啊

@Invincibl-e
Copy link

@xuedingmiaojun 怎么联系你

@xdmjun
Copy link
Owner

xdmjun commented Sep 7, 2021

@xuedingmiaojun 怎么联系你

博客有wx

@liudonghua123
Copy link

我也是相同问题,首先我通过UnpackMiniApp.exe解密wxapkg,然后bingo.bat decrypted.wxapkg,就提示这个错误了。
UnpackMiniApp.zip

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

5 participants