Describe the bug
Hello,
I have update to PrimeNG 19.0.5 and Angular 19.1.4.
I have seen that PrimeFlex has been deprecated in favour of Tailwind 4.
I have followed the Tailwind page to install the required dependencies and I started to have issues with Primeicons:
Application bundle generation failed. [0.855 seconds]
✘ [ERROR] Could not resolve "./fonts/primeicons.eot" [plugin angular-css-resource]
src/styles.css:554:11:
554 │ src: url('./fonts/primeicons.eot');
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "./fonts/primeicons.eot?#iefix" [plugin angular-css-resource]
src/styles.css:555:11:
555 │ src: url('./fonts/primeicons.eot?#iefix') format('embedded-open...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "./fonts/primeicons.woff2" [plugin angular-css-resource]
src/styles.css:555:77:
555 │ ...d-opentype'), url('./fonts/primeicons.woff2') format('woff2'),...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "./fonts/primeicons.woff" [plugin angular-css-resource]
src/styles.css:555:126:
555 │ ...rmat('woff2'), url('./fonts/primeicons.woff') format('woff'), ...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "./fonts/primeicons.ttf" [plugin angular-css-resource]
src/styles.css:555:173:
555 │ ...ormat('woff'), url('./fonts/primeicons.ttf') format('truetype'...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] Could not resolve "./fonts/primeicons.svg?#primeicons" [plugin angular-css-resource]
src/styles.css:555:223:
555 │ ...etype'), url('./fonts/primeicons.svg?#primeicons') format('svg');
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
After many tests I have seen the issues happens when I add tailwindcss and postcss.
I have also clone the PrimeNG repo and noticed you use Tailwind 3 and the configuration file that is not anymore used in version 4.
For the time being I am progressing with the migration of the app from PrimeNG 17 to 19 excluding Primeicons, do you have please a workaround for this issue?
Thanks in advance
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-kukoe1tg?file=package.json,.postcssrc.json,.gitignore
Environment
- PrimeNG 19.0.5
- Angular 19.1.4
- Tailwind 4
- OSX Sequoia 15
Angular version
19.1.4
PrimeNG version
v19
Node version
22.6.0
Browser(s)
Chrome Version 132.0.6834.83 (Official Build) (arm64)
Steps to reproduce the behavior
Basically the steps described here
- ng new my-project --style css
- cd my-project
- npm install tailwindcss @tailwindcss/postcss postcss --force
- install primeicons
- ng serve
Attention! Consider also this issue opened by Tailwind team on Angular CLI 19.
Expected behavior
ng serve command runs fine, no errors, and I can see the primeicons
Describe the bug
Hello,
I have update to PrimeNG 19.0.5 and Angular 19.1.4.
I have seen that PrimeFlex has been deprecated in favour of Tailwind 4.
I have followed the Tailwind page to install the required dependencies and I started to have issues with Primeicons:
After many tests I have seen the issues happens when I add tailwindcss and postcss.
I have also clone the PrimeNG repo and noticed you use Tailwind 3 and the configuration file that is not anymore used in version 4.
For the time being I am progressing with the migration of the app from PrimeNG 17 to 19 excluding Primeicons, do you have please a workaround for this issue?
Thanks in advance
Pull Request Link
No response
Reason for not contributing a PR
Other Reason
No response
Reproducer
https://stackblitz.com/edit/github-kukoe1tg?file=package.json,.postcssrc.json,.gitignore
Environment
Angular version
19.1.4
PrimeNG version
v19
Node version
22.6.0
Browser(s)
Chrome Version 132.0.6834.83 (Official Build) (arm64)
Steps to reproduce the behavior
Basically the steps described here
Attention! Consider also this issue opened by Tailwind team on Angular CLI 19.
Expected behavior
ng serve command runs fine, no errors, and I can see the primeicons