Skip to content
This repository was archived by the owner on Oct 17, 2020. It is now read-only.

Compile error after adding to Quasar projectΒ #7

@jaredthirsk

Description

@jaredthirsk

Have you tried this with quasar? I added the router module to my store and dispatched router/init with no parameters, then kept adding missing css/less/sass/vue style loaders until those messages went away but now I get this error during compilation:

$ quasar dev
 app:dev Running: Mode [ SPA ] with [ MAT ] theme +0ms

 app:quasar-conf Reading quasar.conf.js +9s
 app:dev Checking listening address availability (0.0.0.0:19477)... +16ms
 app:quasar-conf Generating Webpack config +22ms
 app:quasar-conf Extending Webpack config +156ms
 app:generator Generating Webpack entry point +6ms
 app:dev-server Booting up... +15ms

 ERROR  Failed to compile with 1 errors18:28:48

 error  in ./node_modules/vuex-router/lib/modules/page-router.js

Module parse failed: Unexpected token (72:24)
You may need an appropriate loader to handle this file type.
|   saveScrollTop (state, {name, scrollTop}){
|     const newKey = {[name]: scrollTop}
|     state.scrollTops = {...state.scrollTops, ...newKey}
|   },
|   showRoute (state, {route, transition}) {

 @ ./node_modules/vuex-router/lib/router.js 1:0-49
 @ ./node_modules/vuex-router/lib/index.js
 @ ./src/store/index.js
 @ ./.quasar/entry.js
 @ multi (webpack)-dev-server/client?http://0.0.0.0:19477 webpack/hot/dev-server ./.quasar/entry.js

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions