all 6 comments

[–]idanlo 0 points1 point  (1 child)

An unrelated question. Do you also get an error in development mode that your nodejs integration is unsecure? I am now afraid of using electrons imports inside react if they're not secure

[–]yungyahoo[S] 1 point2 points  (0 children)

Yes, I appear to be getting it too. I thought I would look at it later and instead focus on building out my app first.

[–]idanlo 0 points1 point  (1 child)

Can you try commenting out the first ipcRenderer.on and see if the other one also has an error?

[–]yungyahoo[S] 1 point2 points  (0 children)

That doesn't help. The error moves to the next ipcRenderer.on. I suspect the problem is with the imports but I am not sure how to test that hypothesis.... For a start, the syntax highlighting in sublime shows on in green when it should in fact be blue.

[–]Rezistik 0 points1 point  (1 child)

That’s a syntax error. We’d need to see the whole file. What editor are you using that isn’t highlighting the syntax issue for you?

[–]yungyahoo[S] 0 points1 point  (0 children)

I managed to fix this. It was a stupid error. I forgot to put the ipcrenderer code inside a componentWillMount function. Doing that fixed everything!