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
{{ message }}
This repository has been archived by the owner on Dec 13, 2019. It is now read-only.
quasar dev -m electron doesn't work when ran from WSL (windows subsystem for linux)
What were you expecting?
for electron to run normally
What steps did you take, to get the error?
Install electron from windows with npm install electron, run quasar dev -m electron from WSL, the error happens when it uses the WSL paths but electron requires the windows version of the path.
The fix I managed to implement is to change appPaths.resolve.app('.quasar/electron/electron-main.js') to .quasar/electron/electron-main.js @ /lib/electron/index.js:157, without the path resolve function this loads electron with the app in the intended way, it works because the process is ran in the project directory and the script is loaded relative to itself, I didn't submit a pull request because I'm not sure how to implement this in a way that it doesn't break compatibility with other systems, to check if the command is ran from within WSL a simple test can be ran:
const os = require('os');
let isWSL = process.platform === 'linux' && os.release().includes('Microsoft');
The text was updated successfully, but these errors were encountered:
I'm a little surprised that nodejs path.resolve doesn't works correctly with WSL. This should be fixed in Nodejs rather than working around the real issue in Quasar CLI.
In any case, does anything else break in WSL? (SPA, PWA, SSR, Cordova)
Software version, 0.16.4
OS: Windows WSL
Node: v10.5.0
NPM: 6.2.0
What did you get as the error?
quasar dev -m electron
doesn't work when ran from WSL (windows subsystem for linux)What were you expecting?
for electron to run normally
What steps did you take, to get the error?
Install electron from windows with
npm install electron
, runquasar dev -m electron
from WSL, the error happens when it uses the WSL paths but electron requires the windows version of the path.The fix I managed to implement is to change
appPaths.resolve.app('.quasar/electron/electron-main.js')
to.quasar/electron/electron-main.js
@/lib/electron/index.js:157
, without the path resolve function this loads electron with the app in the intended way, it works because the process is ran in the project directory and the script is loaded relative to itself, I didn't submit a pull request because I'm not sure how to implement this in a way that it doesn't break compatibility with other systems, to check if the command is ran from within WSL a simple test can be ran:The text was updated successfully, but these errors were encountered: