Any guides for converting Vue scripts to Quasar?

  • I understand that Quasar is based and written on top of Vue and that you can use Vue commands in Quasar. However, the way they’re organized in their respective script sections is a bit different, and I get confused at times trying to translate Vue into Quasar.

    Does anyone know of any resources out there in the wild that would help me to better understand the way the two relate to each other in their overall respective structures?

  • Read up on Quasar’s boot file system here:

    There is also an “app flow” discussed, which might shine some light on your confusion.

    Basically, Quasar abstracts away a lot of Vue basics, in order to keep things in line for its multi-platform building capability.

    If you have further questions, please let me know.


  • Thanks for the boot files reference.
    I’m currently trying to convert vue files to quasar that do autocomplete.
    Among other things, their scripts include Vue props, like this:

    export default {
        props: {
            suggestions: {
            type: Array,
            required: true,
            selection: {
            type: String,
            required: true,
            twoWay: true
        data () {
            return {
       ... etc.

    The problem is that approach creates errors: “vue.runtime.esm.js?2b0e:619 [Vue warn]: Missing required prop: ‘suggestions’” and “vue.runtime.esm.js?2b0e:619 [Vue warn]: Missing required prop: ‘selection’”

    That’s an example of the kind of thing I’m talking about.

  • You should be able to use any Vue file like usual. How are you using the component? Are you offering the props that are required?


  • Hi Scott,

    Thanks for your offer to help. I abandoned the track I was on because I realized that they were including Pug in the code, and that just layered on too much confusion for me to handle.

    So I’ve shifted my attention to vue-bootstrap-typeahead instead at

    Even here, I’m confused.

    I’ve installed vue-bootstrap-typeahead and bootstrap.

    Using their most basic example combined with registration, I pieced together this into a single Quasar page :

        <div id="wrapper">
            <div id="app">
    import Vue from 'vue'
    import VueBootstrapTypeahead from 'vue-bootstrap-typeahead'
    import 'bootstrap/scss/bootstrap.scss'
    const template = `
        placeholder="Enter a country"
      <p class="lead">
        Selected Country: <strong>{{query}}</strong>
    new Vue({
      components: {
      data() {
        return {
          query: '',
          countries: [
            'United States',

    This generates errors:
    [Vue warn]: Cannot find element: #app
    vue.runtime.esm.js?2b0e:619 [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
    vue-router.esm.js?8c4f:16 [vue-router] Failed to resolve async component default: TypeError: Cannot set property ‘render’ of undefined
    vue-router.esm.js?8c4f:16 [vue-router] uncaught error during route navigation:
    vue-router.esm.js?8c4f:2117 TypeError: Cannot set property ‘render’ of undefined

    I don’t even know if I’m assembling it correctly. I’ve never seen adding a template included in a const before, for example.

    I would really appreciate it if you could help me to understand this.


  • Oh wait! Never mind … I got it to work!

        <div id="wrapper">
            <p class="lead">
                Selected Country: <strong>{{query}}</strong>
                placeholder="Enter a country">
    import Vue from 'vue'
    import VueBootstrapTypeahead from 'vue-bootstrap-typeahead'
    export default {
      components: {
      data() {
        return {
          query: '',
          minMatchingChars: 1,
          countries: [
            'Antigua and Barbuda',
            'Bosnia and Herzegovina',
            'Burkina Faso',
            'Côte d\'Ivoire',
            'Cabo Verde',
            'Central African Republic',
            'Congo (Congo-Brazzaville)',
            'Costa Rica',
            'Czechia (Czech Republic)',
            'Democratic Republic of the Congo',
            'Dominican Republic',
            'El Salvador',
            'Equatorial Guinea',
            'Eswatini (fmr. "Swaziland")',
            'Holy See',
            'Marshall Islands',
            'Myanmar (formerly Burma)',
            'New Zealand',
            'North Korea',
            'North Macedonia',
            'Palestine State',
            'Papua New Guinea',
            'Saint Kitts and Nevis',
            'Saint Lucia',
            'Saint Vincent and the Grenadines',
            'San Marino',
            'Sao Tome and Principe',
            'Saudi Arabia',
            'Sierra Leone',
            'Solomon Islands',
            'South Africa',
            'South Korea',
            'South Sudan',
            'Sri Lanka',
            'Trinidad and Tobago',
            'United Arab Emirates',
            'United Kingdom',
            'United States of America',

  • The only problem I have now is that the list of countries append side-to-side rather than creating a new line each time. And if I put in this:
    import ‘bootstrap/scss/bootstrap.scss’
    in order to have the countries show up one under the other, it overrides my Quasar layout look-and-feel.

  • Why don’t you just use Quasar’s QSelect? It can do typeahead or rather autocomplete?


  • Okay, now I feel like a complete fool. I didn’t know that was there. Thanks!

  • This post is deleted!

Log in to reply