Comments (15)
Make sure to disable history mode on your router for electron builds. Other than that I have no idea.
from vue-cli-plugin-electron-builder.
It's in there. It also notifies you when you add the plugin to a project using vue-router.
from vue-cli-plugin-electron-builder.
Can you include steps for reproduction as I am unable to replicate the error. Make sure you are using the latest version of vue-cli.
from vue-cli-plugin-electron-builder.
vue create app-electron
-
manually select features
select
Babel
Progressive Web App (PWA) support
Router
VueX
CSS Pre-processors
Linter / Formatter
E2E Testing -
then choose
SCSS/SASS -
then choose
Eslint with error prevention only -
thenc choose
lint on save -
then Cypress (Chrome only)
-
then choose
In dedicated config files -
vue add electron-builder
-
yarn build:electron
those are the steps to reproduce the issue
from vue-cli-plugin-electron-builder.
Follow the instructions here to add sass/scss support, it should work then. Please close this issue if it does.
from vue-cli-plugin-electron-builder.
node-sass sass-loader are installed out of the box with vue, that does not solve the issue.
from vue-cli-plugin-electron-builder.
Not sure why it isn't working. For now, just use regular build/serve until v1.0.0 comes out which will fix this issue. A beta should be released in about 1-2 weeks.
from vue-cli-plugin-electron-builder.
thanks.
from vue-cli-plugin-electron-builder.
I'm running into the same issue. I have attached my package.json. Folder structure is identical to the guide. Using > 1.0.0 and the issue remains.
I am just wondering if this is a known bug and if we should reopen the issue
from vue-cli-plugin-electron-builder.
It works fine for me, can you provide reproduction instructions that work on a fresh project?
from vue-cli-plugin-electron-builder.
Try upgrading to 1.0.0-rc.2, I think that would fix the issue.
from vue-cli-plugin-electron-builder.
@nklayman , sure I'll run a fresh project and see what happens there. I may find my bug in the process anywho. If the bug remains, I will update you. If not, I will update my comment. Thanks for the diligence.
from vue-cli-plugin-electron-builder.
@nklayman Just ran a fresh vue cli 3 project with vue-router. No blank screen and routes fine. Now I am really spinning my wheels. Serves fine in my existing project but blank screen in the build. The only other dependencies I have are buefy, vuex, and vuefire.
Update: removed node-sass and sass-loader seemed to fix the issue. Any insight was to why?
from vue-cli-plugin-electron-builder.
Disabling history mode solved this problem for me but I couldn't find this suggestion anywhere in the docs. Leaving this as a signpost for others :)
from vue-cli-plugin-electron-builder.
I had a similar issue. Please find my solution here.
ficonsulting/RInno#107 (comment)
from vue-cli-plugin-electron-builder.
Related Issues (20)
- 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?
- How to enable deep linking?
- Electron Builder does not include dependencies prefixed with "node:" HOT 1
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.