Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@primevue/core/api #36

Open
unlimitedspace opened this issue Aug 5, 2024 · 4 comments
Open

@primevue/core/api #36

unlimitedspace opened this issue Aug 5, 2024 · 4 comments

Comments

@unlimitedspace
Copy link

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';

@Kenneth-Multicase
Copy link

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

@cagataycivici
Copy link
Member

It should have been installed transitively, @mertsincan wdyt?

@lucaspmarra
Copy link

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

@byronogis
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants