wailsapp / wails

Create beautiful applications using Go
https://wails.io
MIT License
24.98k stars 1.19k forks source link

The executable file cannot be opened after being generated on Windows, and it cannot be used after that. #3815

Closed YUJIAJING0408 closed 1 week ago

YUJIAJING0408 commented 1 week ago

Description

There is nothing wrong with the front-end file, including the client preview when using dev mode, but the executable file generated by build is blank after opening, and you can't right-click the console of webview2 at this time.

To Reproduce

React framework and SemiUI used.

Expected behaviour

The file after build can't be used, so you can't click.

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.9.2

# System
┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                                                   |
| Version      | 2009 (Build: 22631)                                                                              |
| ID           | 23H2                                                                                             |
| Go Version   | go1.22.0                                                                                         |
| Platform     | windows                                                                                          |
| Architecture | amd64                                                                                            |
| CPU          | AMD Ryzen 9 7900X 12-Core Processor                                                              |
| GPU 1        | OrayIddDriver Device (Shanghai Best Oray Information Technology Co., Ltd.) - Driver: 17.1.58.818 |
| GPU 2        | NVIDIA GeForce RTX 4090 (NVIDIA) - Driver: 31.0.15.5161                                          |
| GPU 3        | AMD Radeon(TM) Graphics (Advanced Micro Devices, Inc.) - Driver: 31.0.22024.3                    |
| Memory       | 64GB                                                                                             |
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 129.0.2792.79 |
| Nodejs     | N/A          | Installed | 20.11.0       |
| npm        | N/A          | Installed | 10.5.0        |
| *upx       | N/A          | Installed | upx 4.2.4     |
| *nsis      | N/A          | Installed | v3.10         |
└─────────────── * - Optional Dependency ───────────────┘

Additional context

No response

YUJIAJING0408 commented 1 week ago

Uncaught TypeError: Failed to resolve module specifier "vfile". Relative references must start with either "/", "./", or "../".

leaanthony commented 1 week ago

This is likely a problem with your project bundling. If you can reproduce the issue with a standard template then feel free to reopen.