sakai-vue icon indicating copy to clipboard operation
sakai-vue copied to clipboard

@primevue/core/api

Open unlimitedspace opened this issue 1 year ago • 4 comments

Hello,

@primevue/core/api missing somehow, because of that FilterMatchMode, FilterOperator etc cannot be imported below some error examples..

[plugin:vite:import-analysis] Failed to resolve import "@primevue/core/api" from "src/views/uikit/TableDoc.vue". Does the file exist? ....../sakai-vue-master/src/views/uikit/TableDoc.vue:4:50 17 | import { CustomerService } from '@/service/CustomerService'; 18 | import { ProductService } from '@/service/ProductService'; 19 | import { FilterMatchMode, FilterOperator } from '@primevue/core/api'; | ^ 20 | import { onBeforeMount, reactive, ref } from 'vue';

[plugin:vite:import-analysis] Failed to resolve import "@primevue/core/api" from "src/views/pages/Crud.vue". Does the file ...../sakai-vue-master/src/views/pages/Crud.vue:3:34 14 | import __unplugin_components_0 from 'primevue/button'; 15 | import { ProductService } from '@/service/ProductService'; 16 | import { FilterMatchMode } from '@primevue/core/api'; | ^ 17 | import { useToast } from 'primevue/usetoast'; 18 | import { onMounted, ref } from 'vue';

unlimitedspace avatar Aug 05 '24 19:08 unlimitedspace

Had the same problem. The solution was to add this package: pnpm i @primevue/core

Kenneth-Multicase avatar Aug 22 '24 12:08 Kenneth-Multicase

It should have been installed transitively, @mertsincan wdyt?

cagataycivici avatar Sep 02 '24 12:09 cagataycivici

This still a thing, had to install @primevue/core

lucaspmarra avatar Sep 22 '24 23:09 lucaspmarra

Try add shamefully-hoist=true to your .npmrc file.

byronogis avatar Oct 02 '24 06:10 byronogis

Please try to use the latest version. If the problem still persists, please reopen this issue.

tugcekucukoglu avatar Dec 11 '24 10:12 tugcekucukoglu