quasarframework / vue-cli-plugin-quasar

Quasar Framework Vue CLI plugin
https://quasar.dev
MIT License
68 stars 14 forks source link

Quasar Plugin is not Working anymore #46

Closed DaniGTA closed 3 years ago

DaniGTA commented 3 years ago

Describe the bug

import { Quasar } from 'quasar'
import Vue from 'vue'

Vue.use(Quasar, {
    config: {},
})

throws:

Uncaught TypeError: Object(...) is not a function
    at eval (Platform.js?0967:16)
    at Module../node_modules/quasar/src/plugins/Platform.js (chunk-vendors.js:2671)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (install-quasar.js:formatted:52)
    at Module../node_modules/quasar/src/install-quasar.js (chunk-vendors.js:2635)
    at __webpack_require__ (app.js:854)
    at fn (app.js:151)
    at eval (vue-plugin.js?b05d:1)
    at Module../node_modules/quasar/src/vue-plugin.js (chunk-vendors.js:2779)

Not working... To Reproduce Steps to reproduce the behavior: package.json; "quasar": "^2.0.3", "vue": "^2.6.14", "vue-cli-plugin-quasar": "^4.0.0",

Expected behavior Working

Screenshots

image

Platform (please complete the following information): OS: Win 11 Node: v16.5.0 NPM: 7.16.0 Electron: "^13.1.7"

goforu commented 3 years ago

The same issue

rstoenescu commented 3 years ago

Hi,

Quasar v2 + Vue 2? Quasar v2 is based on Vue 3, while Quasar v1 is based on Vue 2.

For Quasar v1 + Vue 2 use vue-cli-plugin-quasar v3 For Quasar v2 + Vue 3 use latest vue-cli-plugin-quasar (v4+)