Closed HA-SEUNG-JEONG closed 1 year ago
I think because global doesn't work on the browser, so don't open the project in the browser run yarn dev and it will open a desktop app.
No need to modify the code? Running with yarn dev
doesn't open it either.
When I run it with yarn dev, I get this:
and I'm using WSL2.
Try to delete the project and create it again and try npm instead of yarn because I installed the project yesterday and it worked fine. But don't update electron because it will break
@HA-SEUNG-JEONG
Could you tell me the version of electron?
@saltyshiomix The version is 8.4.
@HA-SEUNG-JEONG
Sorry, not nextron version, but electron version, please?
Because the issue below may have something to do with this error.
I am experiencing the same issue - and I followed all the directions on the README file.
modify the next.config.js:
if (!isServer) {
config.target = 'electron-renderer';
config.node = {
__dirname: true,
};
}
config.output.globalObject = 'this';
@HA-SEUNG-JEONG, Could you give me more context of your usage? I don't understand why you want to use global.
and I run
yarn && yarn dev
,localhos:8888
not showing...