Comments (8)
This might be caused by electron-webpack which will be replaced in v1.0.0. If the issue still persists in that version, I'll take a closer look at this. Expect a beta within 1-2 weeks.
from vue-cli-plugin-electron-builder.
I just released the first v1.0.0 alpha! Go ahead and try it again with the new version and let me know if it works. Thanks.
from vue-cli-plugin-electron-builder.
I tried updating the repo linked above to v1.0.0-alpha.2 of your plugin and following your upgrade guide.
I'm finding that serving in a regular browser (npm run serve
/ npm run build
) works okay, as before. npm run serve:electron
seems to work initially and doesn't produce any errors, but gets stuck indefinitely at "Launching electron". npm run build:electron
fails after producing this output:
$ npm run build:electron
npm WARN npm npm does not support Node.js v10.4.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
> [email protected] build:electron /Users/<me>/Documents/VSCode/vue-electron-bug/app
> vue-cli-service build:electron
Bundling render process:
⠏ Building for production...
DONE Compiled successfully in 2454ms 19:52:40
File Size Gzipped
dist_electron/bundled/js/chunk-vendors 76.08 kb 27.49 kb
.32ac58bc.js
dist_electron/bundled/js/app.42157137. 2.22 kb 1.11 kb
js
dist_electron/bundled/css/app.42817a0e 0.16 kb 0.14 kb
.css
Images and other types of assets omitted.
DONE Build complete. The dist_electron/bundled directory is ready to be deployed.
Bundling main process:
Hash: 87c32639d0f6baeffc20
Version: webpack 4.12.0
Time: 278ms
Built at: 17/06/2018 19:52:40
Asset Size Chunks Chunk Names
background.js 1.6 KiB 0 [emitted] background
Entrypoint background = background.js
[0] external "electron" 42 bytes {0} [built]
[1] external "url" 42 bytes {0} [built]
[2] external "path" 42 bytes {0} [built]
[3] ./src/background.js 1.43 KiB {0} [built]
[4] multi ./src/background.js 28 bytes {0} [built]
Building app with electron-builder:
• electron-builder version=20.15.1
• description is missed in the package.json appPackageFile=/Users/<me>/Documents/VSCode/vue-electron-bug/app/package.json
• author is missed in the package.json appPackageFile=/Users/<me>/Documents/VSCode/vue-electron-bug/app/package.json
• writing effective config file=dist_electron/electron-builder-effective-config.yaml
Unhandled rejection Error: Unresolved node modules: vue
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:112:21
From previous event:
at Collector.resolveUnresolvedHoisted (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:88:81)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:83:18
at Generator.next (<anonymous>)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at Collector.collect (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:76:28)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/packageDependencies.ts:47:44
at Generator.next (<anonymous>)
From previous event:
at getProductionDependencies (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/out/util/packageDependencies.js:130:17)
at Lazy.<anonymous> (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:109:24)
at Generator.next (<anonymous>)
From previous event:
at Lazy.get value [as value] (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/lazy-val/src/main.ts:18:23)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/yarn.ts:121:81
at Generator.next (<anonymous>)
From previous event:
at rebuild (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/out/util/yarn.js:234:18)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/util/yarn.ts:20:11
at Generator.next (<anonymous>)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at installOrRebuild (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/out/util/yarn.js:68:17)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:451:13
at Generator.next (<anonymous>)
From previous event:
at Packager.installAppDependencies (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:415:70)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:365:20
at Generator.next (<anonymous>)
From previous event:
at Packager.doBuild (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:341:39)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:317:52
at Generator.next (<anonymous>)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/graceful-fs/graceful-fs.js:99:16
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:171:20)
From previous event:
at Packager._build (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:294:133)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:290:23
at Generator.next (<anonymous>)
at runCallback (timers.js:696:18)
at tryOnImmediate (timers.js:667:5)
at processImmediate (timers.js:649:5)
From previous event:
at Packager.build (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/packager.ts:248:14)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/src/index.ts:51:40
at Generator.next (<anonymous>)
From previous event:
at build (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder-lib/out/index.js:220:17)
at Object.build (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/electron-builder/src/builder.ts:234:10)
at bundle.run (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/vue-cli-plugin-electron-builder/index.js:122:12)
at finalCallback (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:157:39)
at hooks.done.callAsync.err (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:206:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/tapable/lib/Hook.js:35:21)
at emitRecords.err (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:204:22)
at Compiler.emitRecords (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:319:39)
at emitAssets.err (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:198:10)
at hooks.afterEmit.callAsync.err (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:305:14)
at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
at AsyncSeriesHook.lazyCompileHook [as _callAsync] (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/tapable/lib/Hook.js:35:21)
at asyncLib.forEach.err (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/webpack/lib/Compiler.js:302:27)
at done (/Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/neo-async/async.js:2854:11)
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/neo-async/async.js:2805:7
at /Users/<me>/Documents/VSCode/vue-electron-bug/app/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:171:20)
Latest commit: TAGC/vue-electron-bug@48eb5f8
Environment
- OS: macOS High Sierra 10.13.5
- node: 10.4.1
- npm: 5.6.0
from vue-cli-plugin-electron-builder.
I created #24 for the serve: electron problem. I will look into the other issue soon.
from vue-cli-plugin-electron-builder.
Please follow the instructions on this issue comment for the serve:electron issue. I run into an install error when following the instructions for your repo (I'm on windows btw).
2018-06-18T18_37_58_783Z-debug.log
from vue-cli-plugin-electron-builder.
@nklayman I got errors similar to that using npm v6.1.0 on Windows. npm v6 seems pretty broken and I encountered other issues with it too. Are you able to install dependencies with npm v5.6.0?
from vue-cli-plugin-electron-builder.
Seems it might be something to do with VS Code locking node_modules
. Haven't tried it myself but apparently closing VS Code before doing npm install
might help: microsoft/vscode#28593 (comment)
from vue-cli-plugin-electron-builder.
2018-06-18T22_03_51_221Z-debug.log
Still doesn't work with vscode closed and npm v5.6.0. I think this might be a windows-related bug.
However, it worked using yarn. Electron launched just fine, and there was no errors like the ones initially mentioned in this issue. I will close this issue as it appears to be fixed, and will continue to look into #24, which seems like a macOS only bug. Thanks
from vue-cli-plugin-electron-builder.
Related Issues (20)
- V3 HOT 1
- robotjs failed to package using electron-builder?
- Unable to import preload.js HOT 2
- Unable to Launch Electron App in Development Environment on Specific Computer
- What project to use with Vite? HOT 1
- Unable to build my vue-cli app using vue-cli-plugin-electron-builder 2.1.1
- Any plans to release stable version of vue-cli-plugin-electron-builder 3.0 in near future?
- Unable to modify Heap memory limit
- Can I ask a question,when I use the utilityProcess.fork in main process,what is the param modulePath?Thanks
- Missmatch of dependencies versions between NPM and github HOT 2
- Error: write EPIPE when killElectron
- Why is navigator.bluetooth undefined after packaging? HOT 1
- electron-builder build and install, run with error Cannot read property '_android' of undefined HOT 3
- V-bind() in CSS no longer works when upgrading Electron version
- ERROR: You are using an outdated version of NPM. HOT 1
- Cannot import and use mqtt.js in main process HOT 1
- Socket.io is not working after packing to exe
- Electron does not launch on Raspberry Pi 64-bit (arm64)
- Do not compress the mainBundle during packaging
- Question: How to build a utility process?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-cli-plugin-electron-builder.