-
Notifications
You must be signed in to change notification settings - Fork 344
Were someone able to make astilectron work with React? #331
Comments
I'm not familiar with React but maybe this comment could be useful to you ? It seems you need to add |
I searched around past issues before opening this one, sadly that's typescript and only pass through the declare issue, in my case I tried to declare, but its basically only using a blank declaration, not really the astilectron itself. I really loved using astilectron before, so I really wanted to make it work with react, I even studying the option to use a websocket as solution like someone said in a similar issue. |
I don't think using However, I've you tried adding |
Without it gives "not defined" :(
Yes, like so: "dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"astilectron": "^0.33.0",
...
} |
With adding |
And if you use |
Shows the same as the image above :( |
Damn, I'm out of solutions, sorry 😞 |
i use astilectron with react.
All astilectron events going into an eventManager singelton and in my components i just register listener in this eventManager Edit: i'm using TypeScript. Here is an example how i call this inside components then:
|
Were someone able to make astilectron work with Vue.js? |
I'm new to React, have built a project already using astilectron but with just vanilla js, I tried to use
But I get this on devtools console:
Without the var astilectron = {}; I get astilectron is not defined on npm build. I'm not using bundler. Would love an example for how to use astilectron with react <3
The text was updated successfully, but these errors were encountered: