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.

A JavaScript error occurred in the main process - Apple M1

See original GitHub issue

Describe 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:

  1. Download Monokle from official website or from GitHub official repo
  2. Open dmg or extract zip file
  3. Move Monokle.app to Applicatons folder
  4. Open Monokle as every other mac app

Expected behavior Monokle to start properly.

Screenshots Screenshot 2022-11-02 at 14 51 54

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:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
chargiocommented, Nov 17, 2022

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

1reaction
chargiocommented, Nov 22, 2022

Sat down with the user, it is not a problem anymore (he downloaded it again and it worked)

Read more comments on GitHub >

github_iconTop 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 >

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