I am developing an app which has a list of objects that I want to paginate. I found vuejs-paginate plugin but I can’t make it work in my view.
After installing it via npm and importing in the view, its tag is in fact in the HTML skeleton of the page, but it shows nothing. No error is displayed in the console either, only this Vue warning:
[Vue warn]: Failed to resolve component: paginate
Might it be a problem with the import? Could you help me?
I attach part of my code so you can see how I’ve declared it.
Unfortunately, none of them could solve my problem. I think the problem has to do with the import statement, because if I remove the braces around Paginate, the component doesn’t even render and I got this error message:
I don’t know if I’m importing the right “export” name, because the docs establish both the ‘Paginate’ and the ‘VuejsPaginate’ imports. This last one is the one which appears in the package index.js exports.
You were right, vuejs-paginate is not compatible with Vue 3 yet. Instead I’ve used the other one you recommended, v-pagination-3 and it works like a charm!