SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.48k stars 1.55k forks source link

npm/yarn run dev fails with SyntaxError #949

Closed Secr3ts closed 5 years ago

Secr3ts commented 5 years ago
Describe the issue / bug.

# npm run dev / yarn run dev fails with SyntaxError: Unexpected token {

How can I reproduce this problem?

# Install node 10.13.0, init a project then run dev server

If visual, provide a screenshot.

# http://prntscr.com/pumc9k http://prntscr.com/pumcca

Tell me about your development environment.
yangjiakun326 commented 5 years ago

you can try to: yarn add electron-localshortcut@3.1.0

Secr3ts commented 5 years ago

@yangjiakun326 I'll try this

axeldeau commented 5 years ago

I can confirm that @yangjiakun326 solution works

ROTGP commented 5 years ago

@yangjiakun326 it's a temporary solution, @SimulatedGREG this needs a permanent fix

derekzhan commented 5 years ago

windows cmd run:npm install electron-localshortcut@3.1.0

Secr3ts commented 5 years ago

yo thanks all for your replies

Secr3ts commented 5 years ago

should i close this issue ?