Documentation on how to import components just using quasar-framework in existing application
See original GitHub issueThis does not exist at all and I am needing to hunt through the source code / install the CLI to try and set it up…
Copying some of the code showing how to instantiate Quasar from the template app, I have:
import App from './App.vue';
import Quasar from 'quasar-framework';
Vue.use(Quasar);
Quasar.start(function(){
new Vue({ // eslint-disable-line no-new
el: '#q-app',
render: (h) => h(App)
})
})
…but this errors on Vue.use
:
Uncaught TypeError: _c is not a function
at Proxy.render (quasar.common.js:1109)
I just want to import <q-checkbox>
haha! Is the component portion reliant on the whole Webpack/CLI build chain?
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
How To Use Vue
Quasar components have names beginning with “Q” like “QBtn” or “QElementResizeObserver”. In order to use them, you need to add a reference to...
Read more >Getting Started with the Quasar Framework
We will create a simple app with Quasar framework. ... still be available). Select Auto-import-in-use Quasar Components and hit Enter. .
Read more >An Introduction To Quasar Framework: Building Cross- ...
These components make up the different parts of the application and can be reused and imported into your pages, layouts, and even other ......
Read more >Introduction for Beginners
Single File Vue Components ... You'll be building your Quasar app using *.vue files which contain multiple sections: 'template' (HTML), 'script' (Javascript) and ......
Read more >Quasar & Vue 3: State Management, Global Components ...
In this series, I'm gonna document my journey creating a Real World Quasar Framework app from scratch. This app that will ultimately be ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@brokenalarms Quasar cannot be progressively added to a project. It’s an all or nothing deal.
Bottom line, sorry but you cannot cherry-pick components from Quasar. All Quasar code is written with performance in mind, and this sometimes leads to not being able to cherry-pick. There are a lot of reasons, most important one being that Quasar is not just a component library. It deals with much much more. Themeing assumes there are some CSS classes attached to the body. Cordova needs its own JS to be included and Quasar deals with starting a Cordova app with the help of
Quasar.start()
method. Reasons after reasons. Won’t go into details as this would take me a day 😃@rstoenescu Is this still the case? I’m trying to understand all what Quasar deals with in terms of Cordova and whether I can get rid of Quasar’s themeing while keeping other stuff, or if I can at least just use vue-cli-plugin-cordova + some quasar components