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

TypeError: a is not a constructor #3922

Open
Manijmk opened this issue Nov 28, 2024 · 0 comments
Open

TypeError: a is not a constructor #3922

Manijmk opened this issue Nov 28, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@Manijmk
Copy link

Manijmk commented Nov 28, 2024

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

@Manijmk Manijmk added the Bug Something isn't working label Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant