0

I made a fresh install of Nuxt.js with bootstrap-vue/nuxt module which was properly added to nuxt.config.js. But now, when I add an element like <v-btn text>foo</v-btn> to my index page, I get the following error message in the javascript console:

[Vue warn]: Unknown custom element: <v-btn> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> <Anonymous>
       <Nuxt>
         <Layouts/default.vue> at layouts/default.vue
           <Root>

How should I fix it ?

1 Answer 1

1

<v-btn> is not a Bootstrap-Vue component. <b-button> or <b-btn> is however. You might be confusing Vuetify with Bootstrap-Vue. Or maybe you just have a typo since v and b is right next to eachother.

Sign up to request clarification or add additional context in comments.

1 Comment

Indeed, I was confusing Vuetify with Bootstrap-Vue. Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.