Closed vorburger closed 4 years ago
It produced a report.20200506.031135.501755.0.001.json
- am I supposed to perhaps upload that, somewhere, for analysis?
BTW my /usr/bin/npm --version
says I (currently) have 6.13.4. In ./bin/npm -version
I seem to have a slightly newer 6.14.5, but I don't understand how to use that, what am I missing here:
$ bin/npm run-script build --prod
> mifosx-web-app@0.0.0 build /home/vorburger/Mifos/web-app
> npm run env -s && ng build --prod --output-hashing=none
Schema validation failed with the following errors:
Data path ".builders['app-shell']" should have required property 'class'.
Error: Schema validation failed with the following errors:
Data path ".builders['app-shell']" should have required property 'class'.
at MergeMapSubscriber.project (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/@angular-devkit/core/src/workspace/workspace.js:215:42)
at MergeMapSubscriber._tryNext (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:69:27)
at MergeMapSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:59:18)
at MergeMapSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at MergeMapSubscriber.notifyNext (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/mergeMap.js:92:26)
at InnerSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at MapSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/map.js:55:26)
at MapSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at SwitchMapSubscriber.notifyNext (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/switchMap.js:86:26)
at InnerSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at /home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeTo.js:17:28
at Object.subscribeToResult (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
at SwitchMapSubscriber._innerSub (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/switchMap.js:65:54)
at SwitchMapSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/switchMap.js:55:14)
at SwitchMapSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at SwitchMapSubscriber.notifyNext (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/operators/switchMap.js:86:26)
at InnerSubscriber._next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
at InnerSubscriber.Subscriber.next (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/Subscriber.js:67:18)
at /home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeTo.js:17:28
at Object.subscribeToResult (/home/vorburger/Mifos/web-app/node_modules/@angular/cli/node_modules/rxjs/internal/util/subscribeToResult.js:10:45)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mifosx-web-app@0.0.0 build: `npm run env -s && ng build --prod --output-hashing=none`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mifosx-web-app@0.0.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
also not:
$ bin/npm run-script ./node_modules/@angular/cli/bin/ng build --prod
npm ERR! missing script: ./node_modules/@angular/cli/bin/ng
@edewit hey my friend, I have a feeling you may happen to have an idea re. what to do about this kinda thing? :smiley:
@vorburger Update your @angular-devkit/build-angular corresponding to the node version you use
I don't know what that means... ;-)
How does one find an "angular-devkit/build-angular corresponding to the node version"?
6.13.4 is a about half a year old and version 6.14.5 is very recent (don't think that is the problem though). Make sure you have run a npm install
, maybe remove your node_modules folder before. I also had some problem building with the latest version of nodejs. I use nvm to switch versions. With nodejs version v10.20.1 I was able to do a prod build. The command you should be using would be npm run build:prod
(see package.json) it passes some more arguments to the ng
command then just --prod
@vorburger fixed by: #437
Now that I figured out #736, it crashes... :smiling_imp:
I'm a Java guy and a Noob to Node.JS - how does one fix something like this, or where to report?