primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.6k stars 4.62k forks source link

Missleading typo leads to no theme in documentary #16763

Closed mkccl closed 6 days ago

mkccl commented 1 week ago

Describe the bug

In v18 the documentary has a fatal issue due of using wrong object. Correct version can be found inside the test repo. https://github.com/primefaces/primeng-quickstart-cli/blob/master/src/app/app.config.ts

the theme: Aura is missing a preset object.

like so. providePrimeNG({ theme: { preset: Aura } })

https://v18.primeng.org/installation

export const appConfig: ApplicationConfig = { providers: [ provideAnimationsAsync(), providePrimeNG({ theme: Aura }) ] };

Environment

fresh install following the documentation

Reproducer

No response

Angular version

18

PrimeNG version

18

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response