CSS from node_modules not loading upon ng serve

UI Components for Angular
Post Reply
mcasper
Posts: 3
Joined: 22 Mar 2018, 00:03

22 Mar 2018, 01:34

Hello,

I'm trying to get up and running, and run into an issue getting the CSS for primeng to load when I build/run using 'ng serve'.

My stack:

Code: Select all

Angular CLI: 1.7.3
Node: 8.9.4
OS: win32 x64
Angular: 5.2.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.7.3
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.1.0
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
I've got the following in the angular cli file:

Code: Select all

...
      "styles": [
        "styles.css",
        "../node_modules/font-awesome/css/font-awesome.min.css",
        "../node_modules/primeng/resources/primeng.min.css",
        "../node_modules/primeng/resources/themes/darkness/theme.css"
      ],
...
Not quite sure what's up. Did a bit of googling and found some others with similar, but so far no solution has done the trick just yet. Note that the font-awesome css is making it either. If I try fiddling with the path, the build fails so the path seems right, it might just be something with webpack or something...

Anyone with ideas?

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests