Electron-vue: npm/yarn run dev fails with SyntaxError

Created on 9 Nov 2019  路  7Comments  路  Source: SimulatedGREG/electron-vue

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.
  • Node version:
    10.13.0 (v12 doesn't work)
  • NPM version:
    6.4.1
  • vue-cli version: (if necessary)
    4.0.5
  • Operating System:
    Windows 10 Pro (also fails on Fedora 30)

Most helpful comment

you can try to: yarn add [email protected]

All 7 comments

you can try to: yarn add [email protected]

@yangjiakun326 I'll try this

I can confirm that @yangjiakun326 solution works

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

windows cmd run锛歯pm install [email protected]

yo thanks all for your replies

should i close this issue ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

okwangyu picture okwangyu  路  3Comments

simonwjackson picture simonwjackson  路  3Comments

xiaomizhou66 picture xiaomizhou66  路  3Comments

michalzaq12 picture michalzaq12  路  3Comments

webrtcn picture webrtcn  路  3Comments