You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have worked many hours on this and I cannot figure out how to get the themes working in v19. I just tested with a simple and every theme I throw at it, this button is still green. I think it falls back to no theme. Here is my current version setup in package.json
Here is my app.config.ts
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { jwtInterceptor } from './_interceptors/jwt';
import { loadingInterceptor } from './_interceptors/loading';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import Lara from '@primeng/themes/lara';
And here is my component
import { Component, inject } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NgxSpinnerComponent } from 'ngx-spinner';
import { ButtonModule } from 'primeng/button';
import { AccountService } from './_services/account.service';
I tried all my favorite AI helpers and also downgraded to 19.0.5 and 19.0.6 (both of those versions failed to render due to a auto focus error. Thanks in advance for your help.
The text was updated successfully, but these errors were encountered:
I have worked many hours on this and I cannot figure out how to get the themes working in v19. I just tested with a simple and every theme I throw at it, this button is still green. I think it falls back to no theme. Here is my current version setup in package.json
"dependencies": {
"@angular/animations": "^19.1.0",
"@angular/common": "^19.1.0",
"@angular/compiler": "^19.1.0",
"@angular/core": "^19.1.0",
"@angular/forms": "^19.1.0",
"@angular/platform-browser": "^19.1.0",
"@angular/platform-browser-dynamic": "^19.1.0",
"@angular/router": "^19.1.0",
"@primeng/themes": "^19.0.7",
"@tailwindcss/postcss": "^4.0.8",
"date-fns": "^4.1.0",
"ngx-spinner": "^19.0.0",
"postcss": "^8.5.3",
"primeicons": "^7.0.0",
"primeng": "^19.0.7",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.15.0"
},
Here is my app.config.ts
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { jwtInterceptor } from './_interceptors/jwt';
import { loadingInterceptor } from './_interceptors/loading';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { providePrimeNG } from 'primeng/config';
import Lara from '@primeng/themes/lara';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideHttpClient(withInterceptors([jwtInterceptor, loadingInterceptor])),
provideAnimationsAsync(),
providePrimeNG({
theme: {
preset: Lara,
options: {
darkModeSelector: 'none'
}
}
})
]
};
And here is my component
import { Component, inject } from '@angular/core';
import { RouterOutlet } from '@angular/router';
import { NgxSpinnerComponent } from 'ngx-spinner';
import { ButtonModule } from 'primeng/button';
import { AccountService } from './_services/account.service';
@component({
',selector: 'app-root',
imports: [ButtonModule],
template: '
styleUrl: './app.component.css'
})
export class AppComponent {
accountService = inject(AccountService)
}
I tried all my favorite AI helpers and also downgraded to 19.0.5 and 19.0.6 (both of those versions failed to render due to a auto focus error. Thanks in advance for your help.
The text was updated successfully, but these errors were encountered: