-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't seem to re-transpile app/main.ts, associated with renderer process (should be main) #65
Comments
Well, I figured out that maybe I should add the
which Terminal 1
Terminal 2
It runs... But when I change & save Here's the output after I change & save
Ideas how to prevent all the extra apps running? |
I think there are two issues here: First, when you use a compile-to-javascript language, the source code (in your case the typescript files) is not what is run by Electron. Electron can only run JavaScript files. Second, multiple apps... since there are no repro steps provided, I can only take guesses here. Electronmon sends standard kill signals to kill the app when restarting it. However, like any other signal, Electron can overload it and choose not to exit. My guess is that is what might be happening, but again, I have no way of knowing if there is no way for me to easily and simply reproduce this problem. |
Ok, that helps, so the typescript side of things needs extra config. Cool. Thanks for the explanation, that all makes sense. I've edited the
This gets the And added a pattern for
seems to remove the redundant So, the remaining problem: |
Found it!
This was in my So, in the end - my app WAS exiting, but then 2 were launching. One from All is good now. |
I have almost the same problem But am not using typescript, the same exact problem, when changing main.js file, it considers it as renderer file, and also package.json is considered as renderer file. Note: package.json "main" path is pointing to "main.js" file |
I run:
and then:
When I re-save
./app/main.ts
, I seeelectronmon
spit out:ok... but that's a
main
file, not arenderer
file... and.... it didn't transpile. It didn't even re-run the main process, It reloaded the renderer only. So, I can't make an edit and hit save, and see it, unless I ctrl-C out ofelectronmon
and totally restart, then it's fine.-> It seems that
electronmon
is (incorrectly) associatingmain.ts
with therenderer
process, instead of themain
process.How do I fix this? The
README.md
givespatterns
and some advice to ignore files, but doesn't tell me how to use that in the situation whenelectronmon
is incorrectly associating the files with the wrongmain
vsrenderer
process.saving
package.json
works:and trying to add a pattern to
package.json
doesn't make any changes (the main.ts does not rerun)it just gives the same
renderer
line when savingmain.ts
The text was updated successfully, but these errors were encountered: