Icons do not show on different environments

UI Components for React
Post Reply
Posts: 4
Joined: 18 Aug 2020, 14:31

03 Dec 2020, 10:54

Dear support team,

I ran into an error. The Primereact icons wont show in production environment, in local development everything is fine.

Are there, in general, different things to set up? I'd expected everything to act the same, maybe you got a hint for me?

I work with react and my package.json includes:

Code: Select all

{ "primeicons": "^4.0.0",}
I also already tried adding

Code: Select all

@import '~primeicons/primeicons.css';
to the main .css file, but that does not help.


Posts: 4569
Joined: 29 Jun 2013, 12:38

12 Dec 2020, 03:17


Interesting! All Premium Layouts and PrimeReact showcase use PrimeIcons with;

Code: Select all

dependencies: {
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-transition-group": "^4.4.1",
    "primeicons": "^4.0.0"


import 'primereact/resources/themes/saga-blue/theme.css'; // you can change this line according to your choice.
import 'primereact/resources/primereact.min.css';
import 'primeicons/primeicons.css';
Best Regards,

Post Reply

Return to “PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests