Open MrManny opened 3 years ago
Probably an issue with @electron/remote, but I don't see how to bundle it with electron-vue.
@MrManny the same issue with electron-builder package (without vue). maybe the problem is with version of "electron-builder": "^22.10.5" your?
Uncaught Error: Cannot find module '@electron/remote'
Require stack:
- /Applications/TagSpaces.app/Contents/Resources/app.asar/app.html
at Module._resolveFilename (internal/modules/cjs/loader.js:887)
at Function.o._resolveFilename (electron/js2c/renderer_init.js:33)
at Module._load (internal/modules/cjs/loader.js:732)
at Function.f._load (electron/js2c/asar_bundle.js:5)
at Function.o._load (electron/js2c/renderer_init.js:33)
at Module.require (internal/modules/cjs/loader.js:959)
at require (internal/modules/cjs/helpers.js:88)
at new electron_io_ElectronIO (electron-io.ts:67)
at Object.<anonymous> (platform-io.ts:27)
at __webpack_require__ (bootstrap:63)
@MrManny did you manage to solve this?
Found an issue or bug with electron-vue? Tell me all about it!
I am trying to import
dialog
in the renderer process. It works fine when serving directly (electron:serve). It does not work when building an executable and launching that (electron:build).It is unclear to me if this is a user error.
Describe the issue / bug.
I am importing like this in my Vue project:
This works when running with
npm run electron:serve
. It fails to produce a working application when run withnpm run electron:build
. The development console:If relevant, here's how the main window is created:
How can I reproduce this problem?
Import
@electron-remote
like this:Run
npm run electron:build
.Run the executable.
Tell me about your development environment.