Comments (10)
I'm not exactly sure what is wrong. For now, just develop using yarn serve. In v1.0.0, this issue will almost definitely be fixed as I will no longer be using electron-webpack.
from vue-cli-plugin-electron-builder.
I created issue #24 for the serve:electron issue as someone else reported the same issue.
from vue-cli-plugin-electron-builder.
Hi @nklayman! Cool!
Looking forward to next release.
Thanks!
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.
Hi!
I've upgrade to new version, but electron app is not shown.
This is my package.json:
{
"name": "client-desktop",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"dev": "yarn serve",
"test:unit": "vue-cli-service test:unit",
"test:e2e": "vue-cli-service test:e2e",
"build:electron": "vue-cli-service build:electron",
"serve:electron": "vue-cli-service serve:electron"
},
"dependencies": {
"lodash": "^4.17.10",
"vue": "^2.5.16",
"vue-class-component": "^6.2.0",
"vue-i18n": "^7.8.0",
"vue-property-decorator": "^6.1.0",
"vue-router": "^3.0.1",
"vuescroll": "^4.6.5",
"vuex": "^3.0.1",
"vuex-class": "^0.3.1"
},
"devDependencies": {
"@types/jest": "^23.1.0",
"@vue/cli-plugin-babel": "^3.0.0-rc.2",
"@vue/cli-plugin-e2e-cypress": "^3.0.0-rc.2",
"@vue/cli-plugin-typescript": "^3.0.0-rc.2",
"@vue/cli-plugin-unit-jest": "^3.0.0-rc.2",
"@vue/cli-service": "^3.0.0-rc.2",
"@vue/test-utils": "^1.0.0-beta.19",
"babel-core": "7.0.0-bridge.0",
"electron": "^2.0.2",
"node-sass": "^4.9.0",
"sass-loader": "^7.0.3",
"ts-jest": "^22.4.6",
"vue-cli-plugin-electron-builder": "^1.0.0-alpha.1",
"vue-template-compiler": "^2.5.16"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"build": {
"directories": {
"output": "dist_electron"
},
"files": [
"dist/**/*",
"node_modules/**/*",
"package.json"
]
},
"main": "dist_electron/bundled/background.js"
}
My project structure:
Any idea?
Thanks!
from vue-cli-plugin-electron-builder.
I'm not sure what you mean by "electron app is not shown". Can you clarify please? What happens when you run build/serve:electron?
from vue-cli-plugin-electron-builder.
also make sure to delete the build
key in your package.json.
from vue-cli-plugin-electron-builder.
I mean the app (window) is not opened:
I've removed build config in package.json as well
from vue-cli-plugin-electron-builder.
I cloned your app, upgraded to vue-cli-plugin-electron-builder 1.0.0-alpha.2, and serve:electron worked just fine. try running yarn electron ./dist_electron/background.js
while serve:electron is running (and has finished compiling).
from vue-cli-plugin-electron-builder.
Since it worked just fine with no errors when I tried it, I will close this issue and continue to look into #24.
from vue-cli-plugin-electron-builder.
Related Issues (20)
- It‘s alert an error about "Failed to load resource: net::ERR_FAILED element-icons" when run the .exe after electron build on win. HOT 1
- Builder couldn't find the background.js file in resources/app.asar HOT 1
- 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)
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.