Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve "primeng/resources/primeng.css" #17170

Closed
1 of 4 tasks
jbarber2016 opened this issue Dec 21, 2024 · 2 comments
Closed
1 of 4 tasks

Could not resolve "primeng/resources/primeng.css" #17170

jbarber2016 opened this issue Dec 21, 2024 · 2 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@jbarber2016
Copy link

jbarber2016 commented Dec 21, 2024

Describe the bug

After upgrading to Primeng 19, my styles.scss can no longer resolve the primeng css resources. When I run npm start on my angular 19.0.6 application it shows an error "Could not resolve "primeng/resources/primeng.css""

@import "primeng/resources/themes/lara-light-blue/theme.css"; @import "primeng/resources/primeng.css"; @import "primeicons/primeicons.css"; @import 'primeflex/primeflex.scss';

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-jrrmkeze

Environment

I am running this from visual studio code.

Angular version

19.0.5

PrimeNG version

v19

Node version

20.12.2

Browser(s)

No response

Steps to reproduce the behavior

  1. create a new angular 19.0.6 application using scss
  2. add primeng 19
  3. add primeng to the styles.scss
  4. npm start

Expected behavior

What is the proper way to resolve the css in styles.scss?

@jbarber2016 jbarber2016 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Dec 21, 2024
@MichiBaum
Copy link

Hi @jbarber2016

As of PrimeNG 18 forward, primeng/resources and theme.css are removed and replaced with a new architecture.
I suggest you looking into Guides -> Migration to V18 -> SASS Themes, Theming and Tailwindcss.
I hope I could help you.

@jbarber2016
Copy link
Author

@MichiBaum Thank you very much. That's very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

2 participants