electron / universal

Create Universal macOS applications from two x64 and arm64 Electron applications
MIT License
112 stars 43 forks source link

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

Closed BaldvinTh closed 9 months ago

BaldvinTh commented 9 months ago

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