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

Uncaught ReferenceError, as path.default is not defined as of @electron/universal@1.4.4 #84

Closed
BaldvinTh opened this issue Nov 4, 2023 · 0 comments · Fixed by #85
Closed

Comments

@BaldvinTh
Copy link
Contributor

BaldvinTh commented Nov 4, 2023

Node version

16.17.1

Electron Universal version

1.4.4

Expected behavior

Application built with universal architecture runs the correct architecture

Actual behavior

Uncaught exception as the script tries to utilize a function from undefined variable.
Issue introduced in v1.4.4 / #83, as typescript compiles to use path.default.basename(appPath) rather than the expected path.basename(appPath)

Steps to reproduce

Build a universal application, make & run it.
Or you can build the package, and see that path_1.default.basename gets generated rather than the expected path.basename

Additional information

image

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

Successfully merging a pull request may close this issue.

1 participant