-
-
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
Problem building multiple mac targets: TypeError: pattern.startsWith is not a function #3012
Comments
Can you provide the |
Here is a cauterized version. This version works, as target is set to just dmg & zip. It breaks if I add mas.. Perhaps it is new behavior with 2.15.3...
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any news about this problem & solutions to fix it ? I'm on electron-builder |
same issue |
@MartinBarker, with latest v22.10.5? |
Downgrade to v22.10.4 worked for me Edit: in 22.10.4 it still gives the error, but only if run with
I get the error when running When instead running |
I added a
It resulted in many lines like this:
Then right before
This leads me to believe there is a bug somewhere lower in the call stack where instead of combining two arrays, some code is instead adding the second array as an item in the base array. But only when multiple targets are running... |
Seems like this is an old bug. Happened it 2019 also: #4204 (comment) Maybe it was just hidden all along and just now started to crash the build in the latest version |
I've run into this problem before. I can't quite remember the root cause of the problem right now. But I'll submit a PR later if needed |
This is the error I'm getting on macOS (Big Sur 11.3.1, arm64) with Node 14.16.1:
It looks like the immediate issue is that an empty array is being passed in to Edit: Applying #5739 as a patch with |
Thanks for verifying that @buu700. |
can you please add the steps on how you resolved this issue? |
Sure, just use Edit: Or just use the current stable version of |
Electron Builder:
Electron 2.0.2
Target:
I'm running into a problem when I try to build for both dmg,zip and mas.
Basically
"target": ["dmg", "zip"] // works
"target": ["mas"] // works
"target": ["mas", "dmg", "zip"] // shows the error below
Let me know if you need more info...
The text was updated successfully, but these errors were encountered: