Ngx-admin: how to build

Created on 8 Nov 2016  路  4Comments  路  Source: akveo/ngx-admin

webpack --progress --profile --bail "--config" "config/webpack.dev.js"

115.28.22.1
69% building modules 1074/1076 modules 2 active ...oject/cctv/src/app/theme/initial.scssPostCSS Config could not be loaded. Please check your PostCSS Config.
52751ms building modules
73ms sealing
1ms optimizing
0ms basic module optimization
207ms module optimization
133ms advanced module optimization
31ms basic chunk optimization
0ms chunk optimization
9ms advanced chunk optimization
1ms module and chunk tree optimization
172ms module reviving
17ms module order optimization
11ms module id optimization
15ms chunk reviving
0ms chunk order optimization
56ms chunk id optimization
165ms hashing
2ms module assets processing
400ms chunk assets processing
9ms additional chunk assets processing
2ms recording
0ms additional asset processing
522ms chunk asset optimization
94% asset optimizationError in bail mode: [default] /home/xingrupeng/project/cctv/node_modules/@angular/platform-browser/src/private_import_core.d.ts:12:55
Property 'VIEW_ENCAPSULATION_VALUES' does not exist on type '{ isDefaultChangeDetectionStrategy: (changeDetectionStrategy: ChangeDetectionStrategy) => boolean...'.

npm ERR! Linux 2.6.32-358.6.2.el6.x86_64
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "webpack" "--" "--config" "config/webpack.dev.js"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! [email protected] webpack: webpack --progress --profile --bail "--config" "config/webpack.dev.js"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] webpack script 'webpack --progress --profile --bail "--config" "config/webpack.dev.js"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the ng2-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --progress --profile --bail "--config" "config/webpack.dev.js"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/xingrupeng/project/cctv/npm-debug.log

Most helpful comment

try to execute the cmd as follows:
npm run prebuild:prod && npm run build:prod && npm run server:prod

This will clear up your dist folder (where release files are located), generate a release build and start the built-in server. Now you can copy the sources from the dist folder and use it with any backend framework or simply put it under a web server.

All 4 comments

who can help me

try to execute the cmd as follows:
npm run prebuild:prod && npm run build:prod && npm run server:prod

This will clear up your dist folder (where release files are located), generate a release build and start the built-in server. Now you can copy the sources from the dist folder and use it with any backend framework or simply put it under a web server.

@lopn closing this for now, let us know if you are still facing this issue.

When I try to build with command : npm run prebuild:prod && npm run build:prod && npm run server:prod it show the error during build
69% building modules 1517/1537 modules 20 active ...art-table/components/title/title.scssPostCSS Config could not be loaded. Pleas e check your PostCSS Config

Could you check it ? 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mignam picture mignam  路  3Comments

hoswey picture hoswey  路  3Comments

Kalaijagdai picture Kalaijagdai  路  4Comments

nsankaranarayanan picture nsankaranarayanan  路  3Comments

hatemhosny picture hatemhosny  路  4Comments