A JavaScript error occurred in the main process - Apple M1
See original GitHub issueDescribe the bug Monokle is not able to start on MacBookPro with Apple Silicon M1, presenting following error:
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Command failed with ENOENT: /usr/local/bin/zsh -ilc echo -n "_SHELL_ENV_DELIMITER_"; env; echo -n "_SHELL_ENV_DELIMITER_"; exit
spawnSync /usr/local/bin/zsh ENOENT
at Object.spawnSync (node:internal/child_process:1111:20)
at Object.spawnSync (node:child_process:823:24)
at module.exports.sync (/Applications/Monokle.app/Contents/Resources/app.asar/node_modules/execa/index.js:174:25)
at shellEnvSync (/Applications/Monokle.app/Contents/Resources/app.asar/build/src/utils/env.js:45:44)
at getMainProcessEnv (/Applications/Monokle.app/Contents/Resources/app.asar/build/src/utils/env.js:61:26)
at getStaticResourcePath (/Applications/Monokle.app/Contents/Resources/app.asar/build/src/redux/services/index.js:14:56)
at loadResource (/Applications/Monokle.app/Contents/Resources/app.asar/build/src/redux/services/index.js:27:32)
at Object.<anonymous> (/Applications/Monokle.app/Contents/Resources/app.asar/build/src/redux/services/schema.js:41:69)
at Module._compile (node:internal/modules/cjs/loader:1118:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
To Reproduce Steps to reproduce the behavior:
- Download Monokle from official website or from GitHub official repo
- Open dmg or extract zip file
- Move Monokle.app to Applicatons folder
- Open Monokle as every other mac app
Expected behavior Monokle to start properly.
Screenshots
Desktop (please complete the following information):
- OS: MacOS Monterey
- Version 12.6
- Apple Silicon M1
- Monokle versions tested: 1.12.0, 1.11.1
Issue Analytics
- State:
- Created a year ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
'JavaScript error occurred in the main process' ERROR message
Hi! I fixed it with downloading the App from original slack website. NOT from Mac App store. Click the left download button on...
Read more >How to fix “JavaScript error occurred in the main process” error?
You can check if the program is supposed to run on the system that your device has. · Click the Apple logo. ·...
Read more >Slack "A Javascript error occurred in the main process" Mac [Fix]
It seems that the “A javascript error occurred in the main process” issue only occurs with the 4.10 App Store version of the...
Read more >A JavaScript error occurred in the main process on mac m1
I am unable to launch remix on mac m1 using desktop app.
Read more >How to Fix Discord JavaScript Error on MacOS - YouTube
This Tutorial Helps to How to Fix Discord JavaScript Error on MacOSHow To Install Discord on MacOShttps://youtu.be/HpuHur0ITHsFix JavaScript ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
it is working for me and @devcatalin and we both have M1, let me know if I need to jump into the call with you
Sat down with the user, it is not a problem anymore (he downloaded it again and it worked)