Skip to content
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

Renderer process does not get called #4

Open
GaspardCulis opened this issue Feb 9, 2023 · 4 comments
Open

Renderer process does not get called #4

GaspardCulis opened this issue Feb 9, 2023 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@GaspardCulis
Copy link

Versions

  • App Version: v1.0.0
  • Node Version: v16.13.2
  • Operating System: Windows 10
  • Browser: Google Chrome v109

Expected Behavior

I just put a console.log in the renderer.ts file, and nothing gets logged, from what I understood, it's supposed to get called by public/index.html. I ran it with npm run dev and npm run dev:electron in the electron window

I also tried to call process.exit(0); , didn't do anything.

The preload script gets called. Didn't touched any files Im not "supposed"to.

@ptkdev
Copy link
Member

ptkdev commented Feb 10, 2023

Hi!
Try add <script src="renderer.js"></script> in public/index.html before </head>

@ptkdev ptkdev self-assigned this Feb 10, 2023
@ptkdev ptkdev added the bug Something isn't working label Feb 10, 2023
@GaspardCulis
Copy link
Author

GaspardCulis commented Feb 11, 2023

I did as you said (last child inside of <head>), chrome fails to load resource both in dev and dev:electron. Maybe you could add an example on how to make backend interact with frontend and vice versa in this amazing template.

image

image

@ptkdev
Copy link
Member

ptkdev commented Feb 11, 2023

At moment i work at version 3.0 with sveltekit + electron forge. I try investigate why process does not get called in v2.0, stay tuned.

@GaspardCulis
Copy link
Author

That sounds cool ! When do you think V3.0 will be released ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants