mdb publish

russellclark asked 5 years ago

Expected behavior I followed your cli install process Actual behavior

mdb publish

ng-uikit-pro-standard-lib@7.2.0 build C:\data\MDBootStrap\ng-uikit-pro-standard ng build

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 (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\@angular\cli\node_modules\@angular-devkit\core\src\workspace\workspace.js:215:42) at MergeMapSubscriber._tryNext (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\operators\mergeMap.js:69:27) at MergeMapSubscriber._next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\operators\mergeMap.js:59:18) at MergeMapSubscriber.Subscriber.next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\Subscriber.js:67:18) at MergeMapSubscriber.notifyNext (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\operators\mergeMap.js:92:26) at InnerSubscriber._next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\InnerSubscriber.js:28:21) at InnerSubscriber.Subscriber.next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\Subscriber.js:67:18) at MapSubscriber._next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\operators\map.js:55:26) at MapSubscriber.Subscriber.next (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\Subscriber.js:67:18) at SwitchMapSubscriber.notifyNext (C:\data\MDBootStrap\ng-uikit-pro-standard\node_modules\rxjs\internal\operators\switchMap.js:86:26) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ng-uikit-pro-standard-lib@7.2.0 build: ng build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ng-uikit-pro-standard-lib@7.2.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\russe\AppData\Roaming\npm-cache_logs\2020-01-13T16_07_39_608Z-debug.log { Status: 1, Message: 'Problem with project building' }

C:\data\MDBootStrap\ng-uikit-pro-standard>

s (screenshots, code snippets etc.)**


Arkadiusz Idzikowski staff commented 5 years ago

Please paste here the content of your angular.json and package.json files (remove your private MDB gitlab token from the package.json if you use one).


russellclark commented 5 years ago

// angular.json "$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json", "version": 1, "newProjectRoot": "projects", "defaultProject": "mdb-angular-pro", "projects": { "mdb-angular-pro": { "root": "", "projectType": "application", "prefix": "app", "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist/mdb-angular-pro", "index": "src/index.html", "main": "src/main.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.app.json", "assets": [ { "glob": "favicon.ico", "input": "src", "output": "/" }, { "glob": "/*", "input": "src/assets", "output": "/assets" } ], "styles": [ { "input": "node_modules/font-awesome/scss/font-awesome.scss" }, { "input": "node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss" }, { "input": "node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss" }, { "input": "src/styles.scss" } ], "scripts": [ { "input": "node_modules/chart.js/dist/Chart.js" }, { "input": "node_modules/easy-pie-chart/dist/easypiechart.js" }, { "input": "node_modules/screenfull/dist/screenfull.js" }, { "input": "node_modules/hammerjs/hammer.min.js" } ] }, "configurations": { "production": { "fileReplacements": [ { "replace": "src/environments/environment.ts", "with": "src/environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "mdb-angular-pro:build" }, "configurations": { "production": { "browserTarget": "mdb-angular-pro:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "mdb-angular-pro:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "src/test.ts", "polyfills": "src/polyfills.ts", "tsConfig": "src/tsconfig.spec.json", "karmaConfig": "src/karma.conf.js", "styles": [ { "input": "styles.scss" } ], "scripts": [], "assets": [ { "glob": "favicon.ico", "input": "src/", "output": "/" }, { "glob": "/*", "input": "src/assets", "output": "/assets" } ] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "src/tsconfig.app.json", "src/tsconfig.spec.json" ], "exclude": [ "/node_modules/" ] } } } }, "mdb-angular-pro-e2e": { "root": "e2e/", "projectType": "application", "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "e2e/protractor.conf.js", "devServerTarget": "mdb-angular-pro:serve" } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "e2e/tsconfig.e2e.json", "exclude": [ "/node_modules/" ] } } } }, "mdb-demo": { "root": "projects/mdb-demo/", "sourceRoot": "projects/mdb-demo/src", "projectType": "application", "prefix": "app", "schematics": {}, "architect": { "build": { "builder": "@angular-devkit/build-angular:browser", "options": { "outputPath": "dist/mdb-demo", "index": "projects/mdb-demo/src/index.html", "main": "projects/mdb-demo/src/main.ts", "polyfills": "projects/mdb-demo/src/polyfills.ts", "tsConfig": "projects/mdb-demo/tsconfig.app.json", "assets": [ "projects/mdb-demo/src/favicon.ico", "projects/mdb-demo/src/assets" ], "styles": [ { "input": "node_modules/font-awesome/scss/font-awesome.scss" }, { "input": "node_modules/ng-uikit-pro-standard/assets/scss/bootstrap/bootstrap.scss" }, { "input": "node_modules/ng-uikit-pro-standard/assets/scss/mdb.scss" }, { "input": "src/styles.scss" } ], "scripts": [ { "input": "node_modules/chart.js/dist/Chart.js" }, { "input": "node_modules/easy-pie-chart/dist/easypiechart.js" }, { "input": "node_modules/screenfull/dist/screenfull.js" }, { "input": "node_modules/hammerjs/hammer.min.js" } ] }, "configurations": { "production": { "fileReplacements": [ { "replace": "projects/mdb-demo/src/environments/environment.ts", "with": "projects/mdb-demo/src/environments/environment.prod.ts" } ], "optimization": true, "outputHashing": "all", "sourceMap": false, "extractCss": true, "namedChunks": false, "aot": true, "extractLicenses": true, "vendorChunk": false, "buildOptimizer": true } } }, "serve": { "builder": "@angular-devkit/build-angular:dev-server", "options": { "browserTarget": "mdb-demo:build" }, "configurations": { "production": { "browserTarget": "mdb-demo:build:production" } } }, "extract-i18n": { "builder": "@angular-devkit/build-angular:extract-i18n", "options": { "browserTarget": "mdb-demo:build" } }, "test": { "builder": "@angular-devkit/build-angular:karma", "options": { "main": "projects/mdb-demo/src/test.ts", "polyfills": "projects/mdb-demo/src/polyfills.ts", "tsConfig": "projects/mdb-demo/tsconfig.spec.json", "karmaConfig": "projects/mdb-demo/karma.conf.js", "styles": [ "projects/mdb-demo/src/styles.css" ], "scripts": [], "assets": [ "projects/mdb-demo/src/favicon.ico", "projects/mdb-demo/src/assets" ] } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": [ "projects/mdb-demo/tsconfig.app.json", "projects/mdb-demo/tsconfig.spec.json" ], "exclude": [ "/node_modules/" ] } } } }, "mdb-demo-e2e": { "root": "projects/mdb-demo-e2e/", "projectType": "application", "architect": { "e2e": { "builder": "@angular-devkit/build-angular:protractor", "options": { "protractorConfig": "projects/mdb-demo-e2e/protractor.conf.js", "devServerTarget": "mdb-demo:serve" }, "configurations": { "production": { "devServerTarget": "mdb-demo:serve:production" } } }, "lint": { "builder": "@angular-devkit/build-angular:tslint", "options": { "tsConfig": "projects/mdb-demo-e2e/tsconfig.e2e.json", "exclude": [ "/node_modules/" ] } } } } }, "schematics": { "@schematics/angular:component": { "styleext": "scss" } } }

// package.json { "name": "ng-uikit-pro-standard-lib", "version": "7.2.0", "license": "SEE LICENSE IN ", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", "remove-demo-unix": "rm -rf projects && rm angular.json && mv angular-clean.json angular.json", "remove-demo-windows": "rmdir /s /q projects && del angular.json && ren angular-clean.json angular.json" }, "//": "git+https://oauth2:REPLACE_WITH_YOUR_TOKEN@git.mdbootstrap.com/mdb/angular/ng-uikit-pro-standard.git", "private": true, "dependencies": { "@agm/core": "^1.0.0-beta.3", "@angular/animations": "^7.2.0-rc.0", "@angular/common": "^7.2.0-rc.0", "@angular/core": "^7.2.0-rc.0", "@angular/forms": "^7.2.0-rc.0", "@angular/http": "^7.2.0-rc.0", "@angular/platform-browser": "^7.2.0-rc.0", "@angular/platform-browser-dynamic": "^7.2.0-rc.0", "@angular/platform-server": "^7.2.0-rc.0", "ngx-facebook": "2.4.0", "angular5-csv": "0.2.10", "@angular/router": "^7.2.0-rc.0", "chart.js": "2.7.3", "classlist.js": "1.1.x", "core-js": "2.5.7", "easy-pie-chart": "2.1.x", "font-awesome": "4.7.x", "hammerjs": "2.0.x", "jarallax": "^1.10.3", "ng-uikit-pro-standard": "file:ng-uikit-pro-standard-7.2.0.tgz", "rxjs": "^6.0.0", "screenfull": "3.3.x", "smoothscroll-polyfill": "0.4.3", "web-animations-js": "2.3.x", "zone.js": "0.8.x" }, "devDependencies": { "@angular-devkit/build-angular": "^0.803.22", "@angular/cli": "^7.2.0-rc.0", "@angular/compiler": "^7.2.0-rc.0", "@angular/compiler-cli": "^7.2.0-rc.0", "@angular/language-service": "^7.2.0-rc.0", "@types/jasmine": "3.3.0", "@types/node": "~10.12.10", "codelyzer": "~4.5.0", "jasmine-core": "~3.3.0", "jasmine-spec-reporter": "~4.2.1", "karma": "^3.1.1", "karma-chrome-launcher": "~2.2.0", "karma-cli": "~1.0.1", "karma-coverage-istanbul-reporter": "^2.0.4", "karma-jasmine": "~2.0.1", "karma-jasmine-html-reporter": "^1.4.0", "protractor": "^5.4.1", "ts-node": "~7.0.1", "tslint": "~5.11.0", "typescript": "~3.1.6", "webpack": "^4.3.0" } }


Arkadiusz Idzikowski staff commented 5 years ago

Please try to change the version of the @angular-devkit/build-angular to 0.12.4, then delete node_modules folder and package-lock.json file and run npm install command again.


hena commented 4 years ago

mdb publish throws this error

throw er; // Unhandled 'error' event ^

Error: write ECONNRESET at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16) Emitted 'error' event on ClientRequest instance at: at errorOrDestroy (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mdb-cli\node_modules\readable-stream\lib\internal\streams\destroy.js:98:101) at ClientRequest.onerror (C:\Users\Administrator\AppData\Roaming\npm\node_modules\mdb-cli\node_modules\readable-stream\lib_stream_readable.js:704:47) at ClientRequest.emit (events.js:315:20) at TLSSocket.socketErrorListener (_http_client.js:469:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -4077, code: 'ECONNRESET', syscall: 'write' }


Sebastian Kaczmarek staff pro premium commented 4 years ago

@hena What version of the MDB CLI do you use? Please update to the latest version using either mdb update or npm i mdb-cli -g.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.8.1
  • Device: browser
  • Browser: chrome
  • OS: win 10
  • Provided sample code: No
  • Provided link: No