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 .
src/ styles.css. , .
src/
styles.css
:.
@import '../node_modules/primeng/resources/primeng.min.css';
angular-cli.json styles.
angular-cli.json
styles
webpack, node_modules . , , , webpack . apps[0].scripts apps[0].styles angular-cli.json, https://github.com/angular/angular-cli#global-library-installation.
node_modules
apps[0].scripts
apps[0].styles
, 1.0.0-beta.11-webpack.9-4
Source: https://habr.com/ru/post/1654415/More articles:How to match any function over a list of values? - elixirChanging the background color in a gridview cell Yii2 depends on its value - gridviewHow to remove a word from the English word Aspell - gnuHow to perform linear regression in BigQuery? - google-bigqueryBest way to handle mass mail in C # - multithreadingCreate a responsive button with image, text and link using css - htmlDock Roaming Database Transitions - databaseBest way to store replies from users in Facebook chat? - databasehow to copy numpy array value to higher sizes - pythonКак получить повторяющиеся строки, содержащие номер первой строки в SQL Server? - sqlAll Articles