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

An error was reported when packing, and windows packed. #1833

Open
StephenJose-Dai opened this issue Dec 11, 2024 · 8 comments
Open

An error was reported when packing, and windows packed. #1833

StephenJose-Dai opened this issue Dec 11, 2024 · 8 comments
Assignees
Labels
desktop MQTTX Desktop help wanted Extra attention is needed Windows
Milestone

Comments

@StephenJose-Dai
Copy link

我在windows上使用yarn install,没有报错,但是在build的时候报错了,我是在windows11上打包的windows包
我只提供了部分报错,报错太多了,我无法上传截图

image

@StephenJose-Dai StephenJose-Dai added the bug Something isn't working label Dec 11, 2024
@github-project-automation github-project-automation bot moved this to Backlog in MQTTX Dec 11, 2024
@ysfscream ysfscream self-assigned this Dec 12, 2024
@ysfscream ysfscream added help wanted Extra attention is needed desktop MQTTX Desktop Windows and removed bug Something isn't working labels Dec 12, 2024
@ysfscream ysfscream added this to the v1.11.1 milestone Dec 12, 2024
@ysfscream
Copy link
Member

It is a ts compilation error. Could you let me know what version of node.js you are running?

@StephenJose-Dai
Copy link
Author

I am using prebuilt Binaries nodejs16 for windows, the specific version is 16.20.2

@StephenJose-Dai
Copy link
Author

Now I try to git clone a brand new file, and compile and install it directly without any modification and generate the win version installation package. It seems that it reports an error and cannot find a file named node-v13.6.6-headers.tar.gz

image

@ysfscream ysfscream modified the milestones: v1.11.1, v1.12.0 Dec 16, 2024
@ni00
Copy link
Contributor

ni00 commented Dec 18, 2024

Now I try to git clone a brand new file, and compile and install it directly without any modification and generate the win version installation package. It seems that it reports an error and cannot find a file named node-v13.6.6-headers.tar.gz

image

Hello @StephenJose-Dai, according to your error log, you can try deleting the 'arm64' on line 81 of vue.config.js. This might allow the compilation to succeed. Currently, it seems that on X86_64 Windows, the compilation may fail. Removing the arm compilation target allows it to compile successfully. The specific reason is still to be determined.

@StephenJose-Dai 您好,根据你的报错日志,你可以尝试一下,删掉 vue.config.js 中的第81行的‘arm64’,或许就可以编译成功了。目前看来在是X86_64的win上,可能会编译失败,移除arm的编译目标之后可以编译成功。具体原因待定。

图片

@ysfscream ysfscream changed the title 打包的时候报错,windows打包 An error was reported when packing, and windows packed. Dec 19, 2024
@StephenJose-Dai
Copy link
Author

Now I try to git clone a brand new file, and compile and install it directly without any modification and generate the win version installation package. It seems that it reports an error and cannot find a file named node-v13.6.6-headers.tar.gz

image

Hello @StephenJose-Dai, according to your error log, you can try deleting the 'arm64' on line 81 of vue.config.js. This might allow the compilation to succeed. Currently, it seems that on X86_64 Windows, the compilation may fail. Removing the arm compilation target allows it to compile successfully. The specific reason is still to be determined.

@StephenJose-Dai 您好,根据你的报错日志,你可以尝试一下,删掉 vue.config.js 中的第81行的‘arm64’,或许就可以编译成功了。目前看来在是X86_64的win上,可能会编译失败,移除arm的编译目标之后可以编译成功。具体原因待定。

图片

我尝试操作,稍候会告诉你结果,感谢!

@StephenJose-Dai
Copy link
Author

StephenJose-Dai commented Jan 5, 2025

I recompiled, this time I didn't make any changes, I cloned the source code directly from git, then deleted the arm word you mentioned, and then built it, it seems that the problem still exists.
It should be a problem with openssl or nodejs, but it seems that you didn't mention what nodejs version I should use, I'm going to collapse!
image
image
image

@StephenJose-Dai
Copy link
Author

I use node16 version and it works fine

@StephenJose-Dai
Copy link
Author

I seem to have seen that after opening the software, it will have two windows, one is the software window, and the other seems more like a window about the software. Which part is the second window responsible for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop help wanted Extra attention is needed Windows
Projects
Status: Backlog
Development

No branches or pull requests

3 participants