-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Use with node #95
Comments
Your bundler config is incorrect. The package correctly defines the exports for Node.js and browser: Lines 17 to 21 in b0d113a
|
Thanks a lot for you answer. I saw that your exports correctly defines the target, that's why I was suprised. I'm using electron-forge+vite. Any tip about what I should check in the configuration? Thanks again for your help. |
Actually my vite.main.config.js contains this but it is not enough. Any idea why?
|
OK, so finally the correct configuration needs the
Thanks for all the fantastic job you do. Kudos. |
Hello,
I would like to use is-online in the main process of an Electron app. My code is simply this:
But I get this error :
It's like if the executed code comes from the browser.js instead of index.js. What's wrong with my implementation? Thanks for your help.
The text was updated successfully, but these errors were encountered: