primevue icon indicating copy to clipboard operation
primevue copied to clipboard

API package not compiled? Missing: import { PrimeIcons } from "primevue/api";

Open cwdx opened this issue 6 months ago • 4 comments

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

Screenshot 2024-07-26 at 11 06 49

cwdx avatar Jul 26 '24 03:07 cwdx