wailsapp/wails

TypeError: a is not a constructor

Manijmk opened this issue · 0 comments

Description

Uncaught TypeError: a is not a constructor
at new X5e (index.b733b7ec.js:1032:72431)

while generating build file in wails this error is shown in the below file
index.b733b7ec.js:1032
var s, c;
this.promise = new a(function(u, m) {
if (s !== void 0 || c !== void 0)
throw Q5e("Bad Promise constructor");
s = u,
c = m
}
),
this.resolve = Ree(s),
this.reject = Ree(c)

To Reproduce

just run the command "wails build" to generate build

Expected behaviour

The build file is showing white screen only and not my react project login screen

Screenshots

No response

Attempted Fixes

No response

System Details

# Wails
Version | v2.9.2

# System
┌──────────────────────────────────────────────────────────────────────────────────────┐
| OS           | Windows 10 Pro                                                        |
| Version      | 2009 (Build: 19045)                                                   |
| ID           | 22H2                                                                  |
| Go Version   | go1.23.3                                                              |
| Platform     | windows                                                               |
| Architecture | amd64                                                                 |
| CPU          | Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz                               |
| GPU          | Intel(R) HD Graphics 630 (Intel Corporation) - Driver: 27.20.100.8280 |
| Memory       | 16GB                                                                  |
└──────────────────────────────────────────────────────────────────────────────────────┘

# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status    | Version       |
| WebView2   | N/A          | Installed | 131.0.2903.70 |
| Nodejs     | N/A          | Installed | 20.18.0       |
| npm        | N/A          | Installed | 10.8.2        |
| *upx       | N/A          | Available |               |
| *nsis      | N/A          | Available |               |
└─────────────── * - Optional Dependency ───────────────┘

# Diagnosis
Optional package(s) installation details:
  - upx : Available at https://upx.github.io/
  - nsis : More info at https://wails.io/docs/guides/windows-installer/

 SUCCESS  Your system is ready for Wails development!

Additional context

No response