ethereum / remix-desktop

Remix IDE desktop
1.02k stars 266 forks source link

A JavaScript error occurred in the main process #93

Closed NewOldGeek closed 2 years ago

NewOldGeek commented 2 years ago

Tried older version as new version had same error Macbook Air M1 MacOS 12.0.1

Uncaught Exception: TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator)) at macosRelease (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release/index.js:26:26) at osName (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/os-name/index.js:21:18) at getUserAgent (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/universal-user-agent/dist-node/index.js:11:53) at parseOptions (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/lib/parse-client-options.js:80:57) at new Octokit (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/lib/constructor.js:23:31) at new DeprecatedOctokit (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/index.js:29:10) at new Github (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/repositories/Github.js:33:27) at Object.exports.getRepository (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/repositories/index.js:12:16) at new AppManager (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/AppManager.js:49:38)

wizard-simon commented 2 years ago

Same issue I am having iMac 2019 MacOS 12.0.1

Screenshot 2021-11-26 at 11 08 39

gmedrano commented 2 years ago

I found the solution in another thread:

Edit the index.js file in /Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release by adding the following line in the nameMap:

[21, ['Monterey', '12']]

It worked for me. Good luck!

NewOldGeek commented 2 years ago

Thanks, I’ll give it a spin

Frank Spaulding Sales Manager Realtor Hometown Realty of Duval 904-631-0506 @.*** Schedule a meeting Calendly.com/hometownrealtyofduval

On Nov 28, 2021, at 7:44 PM, Gilberto Medrano @.***> wrote:

 I found the solution in another thread:

Edit the index.js file in /Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release by adding the following line in the nameMap:

[21, ['Monterey', '12']]

It worked for me. Good luck!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

wizard-simon commented 2 years ago

I found the solution in another thread:

Edit the index.js file in /Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release by adding the following line in the nameMap:

[21, ['Monterey', '12']]

It worked for me. Good luck!

Sweet this worked for me :)

colinwjd commented 2 years ago

I found the solution in another thread:

Edit the index.js file in /Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release by adding the following line in the nameMap:

[21, ['Monterey', '12']]

It worked for me. Good luck!

Thanks, it worked for me.

MauriceOne1 commented 2 years ago

same error

macOS Monterey 12.1 (21C52)

A JavaScript error occurred in the main process
Uncaught Exception:
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at macosRelease (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/macos-release/index.js:26:26)
at osName (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/os-name/index.js:21:18)
at getUserAgent (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/universal-user-agent/dist-node/index.js:11:53)
at parseOptions (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/lib/parse-client-options.js:80:57)
at new Octokit (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/lib/constructor.js:23:31)
at new DeprecatedOctokit (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/@octokit/rest/index.js:29:10)
at new Github (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/repositories/Github.js:33:27)
at Object.exports.getRepository (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/repositories/index.js:12:16)
at new AppManager (/Applications/Remix IDE.app/Contents/Resources/app/node_modules/electron-app-manager/dist/updater/AppManager.js:49:38)
at Object.<anonymous> (/Applications/Remix IDE.app/Contents/Resources/app/main.js:39:17)
yann300 commented 2 years ago

the latest release should fix that - https://github.com/ethereum/remix-desktop/releases - sorry for the delay. Please make sure to reopen if the issue persists.