Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

console.log doesn't work #11

Closed
tvoloshyn opened this issue Nov 6, 2018 · 2 comments
Closed

console.log doesn't work #11

tvoloshyn opened this issue Nov 6, 2018 · 2 comments

Comments

@tvoloshyn
Copy link

I've noticed that console.log doesn't seem to be outputing anything to the terminal when ng serve electron command is being used. From what I understand this is related to how electron is started (through process spawning in node).

Therefore, it would be good to pipe an output of child process to parent process when spawning electron

const child = proc.spawn(electron, [projectRoot, '--serve']);

For example: proc.spawn(electron, [projectRoot, '--serve'], {stdio: ['pipe', process.stdout, process.stderr]});

shalomdotnet pushed a commit that referenced this issue Nov 7, 2018
ShPelles added a commit that referenced this issue Nov 14, 2018
[fix] #11 - console.log doesn't work;
@eranshmil
Copy link
Collaborator

@ShPelles Please publish a new version with this fix.

@ShPelles
Copy link
Owner

Done.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants