Quasar UMD 2.0.0 + Vite
-
Hi!
I’m trying to prototype using the UMD 2.0.0 with Vite. I follow the steps in the installation guide
I’m importing the cdn packages in
index.html
. And doapp.use(Quasar)
in mymain.js
.However this throws an error
Cannot read property 'proxy' of null at setup (quasar.umd.prod.js:6)
Any ideas why?
Cheers
index.html
... <body> <div id="q-app"></div> <script src="https://cdn.jsdelivr.net/npm/vue@3/dist/vue.global.prod.js"></script> <script src="https://cdn.jsdelivr.net/npm/quasar@2.0.0-beta.5/dist/quasar.umd.prod.js"></script> <script type="module" src="/src/main.js"></script> </body>
main.js
import { createApp } from 'vue' import App from './App.vue' import store from './store' import router from './router' createApp(App) .use(router) .use(store) .use(Quasar) .mount('#q-app')
App.vue
<template> <div> <q-btn>hello</q-btn> </div> </template>