-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Building NSIS installers broken after switching from 22.10.5 to 22.11.1 #5863
Comments
Thank you! It`s help me to make build for win. 22.10.5 work fine |
Hmmm, the switch to pnpm from yarn also changed compilation from using
to electron-builder/tsconfig-base.json Lines 3 to 4 in 3dfb731
@develar would you be able to take a look at this? Was this version also published differently, via pnpm? |
Hi all. Can you please try v22.11.2? |
@mmaietta 22.11.2 is still broken, and this is on macOS (we use 22.10.4 right now as 22.10.5 has some issue building native modules):
Note how the version says 22.10.5 for some reason, even though we were on 22.10.4. |
Not working for me either. I get the same error. Perhaps it's to do with the |
Now it works with 22.11.3 |
This is, for whatever reason, still broken for us on 22.11.3, @develar .
|
Can confirm that the original issue is now fixed for me. Thanks for the hard work 👍 |
@omarkilani , electron-builder 22.11.x currently does not work on node 16, not sure if it did previously in 22.10. |
FWIW, 22.11.4 works, and appears to work on node 16. Thanks @develar ! |
install-app-deps fails for me on 22.11.4
https://github.com/WeakAuras/WeakAuras-Companion/pull/1044/checks?check_run_id=2586016028 Edit: Updated node from 12 to 15 and it fixed it. |
Working with electron-builder 22.11.7 and node 14.17.3. |
Doesn't work on Nodejs 12.21.0 32 bit on macOS.
|
@sandeep1995 that's because newer versions of electron-builder requires node 14+ |
After updating
electron-builder
from22.10.5
to22.11.1
, this error started happening for all of our Windows builds:After some digging, this seems to be an issue with how
app-builder-lib
's TypeScript source is being compiled for distribution. The original source looks like this:But in
22.11.1
this is being compiled to JavaScript that looks like this, where it expects thefs
module to have a.default
property, which it doesn't (basically assuming it's an ES module):Looking at the distributed Javascript for the previous version (
22.10.5
), it seems like this case is handled by the compiled output:The
_interopRequireDefault
function seems to be something that used to be added by @babel/plugin-transform-modules-commonjs. My current theory is that something broke the Babel integration between these two versions.The text was updated successfully, but these errors were encountered: