peshanghiwa / vue-awesome-paginate

The Awesome Vue.js 3 Pagination Library
MIT License
146 stars 21 forks source link

Failed to resolve component: vue-awesome-paginate #23

Open pelargir opened 3 weeks ago

pelargir commented 3 weeks ago

We're getting a warning in the logs running Nuxt 3:

[Vue warn]: Failed to resolve component: vue-awesome-paginate
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. 

The component works, but it would be nice to eliminate the warning to avoid the extra noise in the logs. Any ideas?

peshanghiwa commented 1 week ago

This really looks like you have not registered the component, or maybe you have registered it with a different name, can you please share a sandbox or the part of your codebase where you have registered your component?

pelargir commented 1 week ago

We followed your instructions for Nuxt and put this in the plugins folder:

import VueAwesomePaginate from "vue-awesome-paginate";

import "vue-awesome-paginate/dist/style.css";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueAwesomePaginate);
});