<p-skeleton> is not displayed

UI Components for Angular
Post Reply
Cerius
Posts: 2
Joined: 17 Jun 2021, 10:37

17 Jun 2021, 10:51

Hello, i tried to use the skeleton placeholder, but the are not shown in the browser. I tried to copy the examples, but always i can't see them.

Here are my versions:
"dependencies": {
"@angular/animations": "^11.2.14",
"@angular/cdk": "^11.2.13",
"@angular/common": "~11.2.14",
"@angular/compiler": "~11.2.14",
"@angular/core": "~11.2.14",
"@angular/elements": "^11.2.14",
"@angular/forms": "~11.2.14",
"@angular/localize": "^11.2.14",
"@angular/material": "^11.2.13",
"@angular/platform-browser": "~11.2.14",
"@angular/platform-browser-dynamic": "~11.2.14",
"@angular/router": "~11.2.14",
"@ckeditor/ckeditor5-angular": "^2.0.1",
"@ngx-translate/core": "^13.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"primeflex": "^2.0.0",
"primeicons": "^4.1.0",
"primeng": "^11.4.3"
}

Maybe someone has an idea.

PhilHuhn
Posts: 177
Joined: 19 Sep 2018, 02:52
Location: Ann Arbor, Michigan USA
Contact:

17 Jun 2021, 20:04

Hey:
Have you defined your theme?

That is set in the angular.json file. I'm using bootstrap, but you can use other grid CSS like flex (that you have installed).

Code: Select all

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  ...
  "projects": {
    "-project name-": {
      ...
      "architect": {
        "build": {
          "builder": "@angular-devkit/build-angular:browser",
          "options": {
            ...
            "assets": [
              "src/favicon.ico",
              "src/assets"
            ],
            "styles": [
              "node_modules/bootstrap/dist/css/bootstrap-grid.min.css",
              "node_modules/primeng/resources/themes/nova/theme.css",
              "node_modules/primeng/resources/primeng.min.css",
              "node_modules/primeicons/primeicons.css",
              "src/styles.css"
            ],

Cerius
Posts: 2
Joined: 17 Jun 2021, 10:37

18 Jun 2021, 08:10

Thank you, i had a modified theme file from an older version, now with exchanging it it works.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: iotelematics and 8 guests