primevue
primevue copied to clipboard
API package not compiled? Missing: import { PrimeIcons } from "primevue/api";
Describe the bug
[vite] Internal server error: Failed to resolve import "primevue/api" from "Component.vue". Does the file exist?
Reproducer
x
PrimeVue version
4.0.1
Vue version
4.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Any
Steps to reproduce the behavior
No response
Expected behavior
In v3 we were able to import from import { PrimeIcons } from "primevue/api";
https://github.com/primefaces/primevue/blob/v3-prod/components/lib/api/PrimeIcons.js
In v4 the api doesn't seem to be compiled.
The source file doe exist in the master
branch:
https://github.com/primefaces/primevue/blob/master/packages/core/src/api/Api.js
https://github.com/primefaces/primevue/blob/master/packages/core/src/api/PrimeIcons.js