You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know why (I think, webpack is causing this.) but when I run the program, the filename and dirname is not defined so I defined it hardly and it worked.
It's electron-reload, not electron-reloader. I have the same problem.
I don't know why (I think, webpack is causing this.) but when I run the program, the filename and dirname is not defined so I defined it hardly and it worked.
It's electron-reload, not electron-reloader. I have the same problem.
Here is electron-reload's source use of module.parent
Here is discussion about module.parent's problem with being imported, import(CJS)
Here is deprecation commit that suggests testing require.main
To test, run a single-line ESM file from node: TEST.mjs:
Output
The text was updated successfully, but these errors were encountered: