Unknown custom element: <q-input> - did you register the component correctly? For recursive
-
hi i am having trouble should i still import some quasar components here please help me thank you!
-
Yes. You need to import the components that you use. See http://quasar-framework.org/components/introduction-for-beginners.html#Using-Quasar-Components
-
Hello, I have the same issue.
This is what I did :import { QInput } from 'quasar'; export default { components: { QInput, },
But I still get:
[Vue warn]: Unknown custom element: <q-input> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
Please help
-
Try importing them in your
main.js
-
Thanks for your response @a47ae , but same result …
-
Hm strange, your code looks okay to me. Did you change any other things?
-
@a47ae No nothing else, could you try to use q-input on your side please ?
-
@rstoenescu Do you have an idea? I kinda stuck over here
-
@alexandre_c I am using it since beta and it works just fine, so definitely a problem in your setup
-
I fixed it in quasar.conf.js by setting the all option to auto, as below:
…
// Possible values for “all”:
// * ‘auto’ - Auto-import needed Quasar components & directives
// (slightly higher compile time; next to minimum bundle size; most convenient)
// * false - Manually specify what to import
// (fastest compile time; minimum bundle size; most tedious)
// * true - Import everything from Quasar
// (not treeshaking Quasar; biggest bundle size; convenient)
all: ‘auto’,
…