quasarframework / quasar-cli

[DEPRECATED, <= 0.17) Quasar Framework - CLI
https://quasar.dev
MIT License
202 stars 50 forks source link

bug with q-app detection #150

Closed boid-com closed 6 years ago

boid-com commented 6 years ago

Quasar CLI........ v0.17.0 Quasar Framework.. v0.17.0

image This is valid syntax according to official pug documentation https://pugjs.org/language/attributes.html#id-literal

However, the Quasar cli throws an error:

 app:quasar-conf Reading quasar.conf.js +0ms

⚠️  Your newer Quasar CLI requires a minor change to the root component:
   /Users/boid/Dev/boid/boidapp/src/App.vue

  Please add: id="q-app"
  to the outermost HTML element of the template.

Example:
  <template>
    <div id="q-app">
      ...
    </div>
  </template>

If I use a more verbose pug syntax: image

Then quasar compiles correctly.

Also interesting to note: If you change the syntax while the webpack dev server is running, it recompiles with no issue. The error is only thrown when starting the dev server or performing a final build. I did not receive this error with previous quasar builds.

rstoenescu commented 6 years ago

Fix will be available in CLI v0.17.2 (to be released in a few hours).