Angular-cli @webpack with primeng 404 questions

I get the following errors in a startup project with angular2, angular-cli @webpack and primeng. The only ui component from PrimeNG is a drop-down list that displays and has its meanings, but no css theme ever applies (see Errors below for CSS). I am not sure why I am getting this error and spent countless hours without result, so I am at a loss at this stage. The component was generated using the ng command and ng serves to start the web server. Does anyone have an idea? I also tried both node.js 6.5.0 and 4.5.0 (switching and managing them using nvm).

Any help is greatly appreciated.

Failed to load resource: server responded with status 404 (Not detected) http: // localhost: 3000 / node_modules / primeng / resources / primeng.min.css Failed to load resource: server responded with status 404 (Not found) http: // localhost : 3000 / src / app / resources / css / font-awesome-4.6.3 / css / font-awesome.min.css Resource could not be loaded: server responded with status 404 (Not detected) http: // localhost: 3000 / node_modules /primeui/primeui-ng-all.min.css Failed to load the resource: the server responded with a status of 404

By the way, now I have posted the code in: https://github.com/GregHila/primeng-angular-cli .

+4
3

src/ styles.css. , .

:.

@import '../node_modules/primeng/resources/primeng.min.css';

angular-cli.json styles.

+9

webpack, node_modules . , , , webpack . apps[0].scripts apps[0].styles angular-cli.json, https://github.com/angular/angular-cli#global-library-installation.

0

, 1.0.0-beta.11-webpack.9-4

0

Source: https://habr.com/ru/post/1654415/


All Articles