[GH-ISSUE #949] A JavaScript error occurred in the main process #550

Closed
opened 2026-02-26 23:59:55 +03:00 by kerem · 8 comments
Owner

Originally created by @joket1999 on GitHub (Nov 20, 2018).
Original GitHub issue: https://github.com/electerm/electerm/issues/949

Electerm version:

0.25.35

Operating system(linux, macos, or windows?):

'npm run release' on Mac os
run electerm.exe on Windows 10 x64

Expected Behavior

image

Current Behavior

Possible Solution

Steps to Reproduce

  1. git clone https://github.com/electerm/electerm.git
  2. npm install
  3. modify package.json: "output": "./node_modules/.bin/electron-builder --win --x64"
  4. npm run release
  5. copy the 'electerm-0.25.35-win-x64.tar.gz' package to Windows 10 and tar it
  6. run electerm.exe

Context (Environment)

Detailed Description

Suggestions?

Originally created by @joket1999 on GitHub (Nov 20, 2018). Original GitHub issue: https://github.com/electerm/electerm/issues/949 <!--- Provide some basic info --> ## Electerm version: 0.25.35 ## Operating system(linux, macos, or windows?): 'npm run release' on Mac os run electerm.exe on Windows 10 x64 ## Expected Behavior <!--- Tell me what should happen --> ![image](https://user-images.githubusercontent.com/6611880/48754822-066c9e80-ecce-11e8-8b13-e7f514028312.png) ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. git clone https://github.com/electerm/electerm.git 2. npm install 3. modify package.json: "output": "./node_modules/.bin/electron-builder --win --x64" 4. npm run release 5. copy the 'electerm-0.25.35-win-x64.tar.gz' package to Windows 10 and tar it 6. run electerm.exe ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem closed this issue 2026-02-26 23:59:55 +03:00
Author
Owner

@zxdong262 commented on GitHub (Nov 20, 2018):

Would ver 0.33 from release work?

<!-- gh-comment-id:440169980 --> @zxdong262 commented on GitHub (Nov 20, 2018): Would ver 0.33 from release work?
Author
Owner

@joket1999 commented on GitHub (Nov 20, 2018):

v0.25.33 doesn't work

<!-- gh-comment-id:440180277 --> @joket1999 commented on GitHub (Nov 20, 2018): v0.25.33 doesn't work
Author
Owner

@joket1999 commented on GitHub (Nov 20, 2018):

It's missing a node-pty module from \resources\app.asar.unpacked\node_modules
image

The same problem of app.asar. Some node_models are missing.

<!-- gh-comment-id:440184228 --> @joket1999 commented on GitHub (Nov 20, 2018): It's missing a node-pty module from \resources\app.asar.unpacked\node_modules ![image](https://user-images.githubusercontent.com/6611880/48760117-083f5d80-ece0-11e8-8b3d-0e66cd232dac.png) The same problem of app.asar. Some node_models are missing.
Author
Owner

@zxdong262 commented on GitHub (Nov 20, 2018):

https://github.com/electerm/electerm/releases/download/v0.25.33/electerm-0.25.33-win-x64.tar.gz So this one do not work too?

<!-- gh-comment-id:440196248 --> @zxdong262 commented on GitHub (Nov 20, 2018): https://github.com/electerm/electerm/releases/download/v0.25.33/electerm-0.25.33-win-x64.tar.gz So this one do not work too?
Author
Owner

@joket1999 commented on GitHub (Nov 20, 2018):

This package is works

https://github.com/electerm/electerm/releases/download/v0.25.33/electerm-0.25.33-win-x64.tar.gz So this one do not work too?

<!-- gh-comment-id:440196673 --> @joket1999 commented on GitHub (Nov 20, 2018): This package is works > https://github.com/electerm/electerm/releases/download/v0.25.33/electerm-0.25.33-win-x64.tar.gz So this one do not work too?
Author
Owner

@joket1999 commented on GitHub (Nov 20, 2018):

I found the package is missing files of I building, but just happen on Windows

<!-- gh-comment-id:440197242 --> @joket1999 commented on GitHub (Nov 20, 2018): I found the package is missing files of I building, but just happen on Windows
Author
Owner

@zxdong262 commented on GitHub (Nov 20, 2018):

I do not know how to build windows release in mac os, I build the windows release with appveyor, some deps need build in target os env, so building windows release in windows is recommended way.

<!-- gh-comment-id:440198091 --> @zxdong262 commented on GitHub (Nov 20, 2018): I do not know how to build windows release in mac os, I build the windows release with **appveyor**, some deps need build in target os env, so building windows release in windows is recommended way.
Author
Owner

@joket1999 commented on GitHub (Nov 21, 2018):

Building for Windows must be dependent on vc++ build tools. so I build it on Windows and it works

<!-- gh-comment-id:440567886 --> @joket1999 commented on GitHub (Nov 21, 2018): Building for Windows must be dependent on vc++ build tools. so I build it on Windows and it works
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#550
No description provided.