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

Compile error after adding to Quasar project #7

Open
jaredthirsk opened this issue May 17, 2018 · 2 comments
Open

Compile error after adding to Quasar project #7

jaredthirsk opened this issue May 17, 2018 · 2 comments

Comments

@jaredthirsk
Copy link

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?

@geekytime
Copy link
Owner

I've never used quasar, but perhaps try the work-around discussed in #9?

@calebeaires
Copy link

Same here, using element-ui


in ./node_modules/vuex-router/lib/page.vue?vue&type=style&index=0&id=2788a24b&lang=less&scoped=true&

Module build failed (from ./node_modules/less-loader/dist/cjs.js):
Error: Cannot find module 'less'

My project dont use less, but scss :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants