question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mismatched versions of Forge and maker modules

See original GitHub issue

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.0.0-beta.59

Electron version

v13.1.2

Operating system

Windows 10 (Parallels)

Last known working Electron Forge version

none

Expected behavior

Making runs without issues.

Actual behavior

> npm run make

> translationtool@1.0.0 make C:\Users\hof\Documents\TranslationTool_win
> electron-forge make

√ Checking your system
√ Resolving Forge Config

An unhandled rejection has occurred inside Forge:
TypeError: **maker.ensureExternalBinariesExist** is not a function
    at _default (C:\Users\hof\Documents\TranslationTool_win\node_modules\@electron-forge\core\src\api\make.ts:148:11)
    at C:\Users\hof\Documents\TranslationTool_win\node_modules\@electron-forge\cli\src\electron-forge-make.ts:44:5

Electron Forge was terminated. Location:
{}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! translationtool@1.0.0 make: `electron-forge make`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the translationtool@1.0.0 make script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hof\AppData\Roaming\npm-cache\_logs\2021-08-16T17_22_38_459Z-debug.log

Steps to reproduce

Be on a Windows machine using Parallels and use cmd:

> npx create-electron-app@latest my-app
> dir my-app
> npm i @electron-forge/maker-squirrel@beta -d
> npm run make

Additional information

I tried using maker-squirrel and maker-wix. But the issue seems to happen before any maker is even called.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ferdinandhofcommented, Aug 20, 2021

Fixed the issue. It was due to Webpack running into an “Cannot read property ‘length’ of null” error when trying to pack “xlsx” dependency. I added a “?” as a hot fix in line 174 in innerOriginalLine <= originalSourceLines?.length. See https://github.com/webpack/webpack-sources/pull/133 for the long term solution when there is one.

1reaction
maleptcommented, Aug 16, 2021

Don’t install from the beta tag, install from latest.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NODE_MODULE_VERSION Mismatch for native module #602
Please describe your issue: Having an issue with node_module version mismatch when using the serialport package. Was able to reproduce in a ...
Read more >
[Forge 1.16.4-35.1.34] Mismatched mod Channel?
Using the same forge version for client and server. Having the same version of mods on both sides (copied and pasted the mod...
Read more >
electron - An unhandled error has occurred inside Forge: An ...
I'm trying to make distributables for my electron app but I'm stumbling with the error from the title. As per my understanding this...
Read more >
Can I have two mod folders for different versions of forge?
So here's my question is there a way to have a separate mod folder that automatically is chosen for the version of forge...
Read more >
Configuration - Electron Forge
How to configure Electron Forge. ... module.exports = { ... The top level property makers on the configuration object is an array of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found