-
Notifications
You must be signed in to change notification settings - Fork 344
go-astilectron + react #300
Comments
Make sure you're using the document.addEventListener('astilectron-ready', function() {
// TODO
}) |
@asticode Right.
|
Is it possible to bundle already built with react + electron + astilectron?
|
That's the way you should do it :
This is weird. Could you |
I'm using Typescript + React and getting on really well (cheers Asticode) I'm not sure about non-Typescript, but I just declared astiliectron like so
|
I am using Javascript + React First, the astilectron object is inside the global object. And to receive or give a message from go, |
document.addEventListener('astilectron-ready', (e) => { |
I'm trying to use react on go-astilectron.
First, yarn build for the react project and then bundle the results. It looked fine so far.
When I try to get some data from go implementation, I got this error.
And I found out there is no import or declaration about the astilectron instance on the javascript side. At least, there's no such thing in go-astilectron-demo/resources/app/*.
It seems to react doesn't know what it is while the astilectron-bundler could.
Any tips or comments will be helpful.
The text was updated successfully, but these errors were encountered: