PrimeNG stylesheets not found

Discussão em 'Angular' iniciado por Daniel Grima, Janeiro 22, 2025.

  1. Daniel Grima

    Daniel Grima Guest

    I'm having trouble with a new project I've just created. For some reason when trying to import the stylesheets of PrimeNG I'm getting a 404 error. I don't know if it's something to do with the configuration of my project.

    I'm using the Angular Class WebPack Starter, I've added PrimeNG but as mentioned above I'm getting a 404 error. Although it doesn't make much sense I'm suspecting that it's related to the fact that the stylesheets are in the node_modules folder. As a test I've put a .css file in the node_modules folder and it wasn't found. However, when put in my "global" folder for the public assets the file was found.

    Screenshot with the test stylesheet and the PrimeNG theme

    [​IMG]

    Screenshot with the test stylesheet moved to public folder and the PrimeNG theme

    [​IMG]

    I know it's a trivial issue but I can't seem to find any information. Just in case I've also looked at PrimeNG's setup page however it did not make a difference.

    Continue reading...

Compartilhe esta Página