electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.61k stars 1.74k forks source link

TypeError: undefined is not a function #8268

Closed HAnshu47 closed 3 months ago

HAnshu47 commented 3 months ago

description: 在使用electron-builder 打包,win7系统会报错版本过高,尝试降低electron等级至23一下(23开始不在兼容win7,win8),依然报错undefined is not a function,window系统和mac-intel系统都会报此问题

Error reporting of unknown problem img

image

Version incompatibility issues img

image
mmaietta commented 3 months ago

That logic is coming from bytecode-loader and is an electron-specific error due to the difference between local development and a packaged electron app, not intrinsically caused by electron-builder