Erro Deploy no Heroku

0 respostas
E

Local na minha maquina da certo, quando subo no heroku da o problema abaixo

_____erro

remote: ERROR in multi ./node_modules/ng2-toasty/style-bootstrap.css ./node_modules/font-awesome/css/font-awesome.min.css ./node_modules/primeicons/primeicons.css ./node_modules/primeng/resources/themes/nova-light/theme.css ./node_modules/primeng/resources/primeng.min.css ./src/styles.css
remote: Module not found: Error: Can’t resolve ‘/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5/node_modules/primeicons/primeicons.css’ in ‘/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5’
remote: ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module ‘rxjs-compat/Observable’.
remote: node_modules/ng2-toasty/src/toasty.service.d.ts(1,10): error TS2305: Module ‘"/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5/node_modules/rxjs/Observable"’ has no exported member ‘Observable’.
remote: node_modules/angular2-jwt/angular2-jwt.d.ts(3,10): error TS2305: Module ‘"/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5/node_modules/rxjs/Observable"’ has no exported member ‘Observable’.
remote: src/app/seguranca/money-http.ts(5,10): error TS2305: Module ‘"/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5/node_modules/rxjs/Observable"’ has no exported member ‘Observable’.
remote: src/app/seguranca/auth.guard.ts(4,10): error TS2305: Module ‘"/tmp/build_fc84bab0c5ad2fb3fda1cd08c3d72ac5/node_modules/rxjs/Observable"’ has no exported member ‘Observable’.
remote:
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno 1
remote: npm ERR! [email protected] postinstall: ng build --prod
remote: npm ERR! Exit status 1
remote: npm ERR!
remote: npm ERR! Failed at the [email protected] postinstall script.
remote: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
remote:
remote: npm ERR! A complete log of this run can be found in:
remote: npm ERR! /tmp/npmcache.J4jp2/_logs/2019-06-26T00_40_53_872Z-debug.log
remote:
remote: -----> Build failed
remote:
remote: We’re sorry this build is failing! You can troubleshoot common issues here:
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys
remote:
remote: Some possible problems:
remote:
remote: - A module may be missing from ‘dependencies’ in package.json
remote: https://devcenter.heroku.com/articles/troubleshooting-node-deploys#ensure-you-aren-t-relying-on-untracked-dependencies
remote:
remote: Love,
remote: Heroku
remote:
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to cadastrocontas-ui.

_____________Angular.json

{

“$schema”: “./node_modules/@angular/cli/lib/config/schema.json”,

“version”: 1,

“newProjectRoot”: “projects”,

“projects”: {

“algamoney-ui-alga”: {

“root”: “”,

“sourceRoot”: “src”,

“projectType”: “application”,

“prefix”: “app”,

“schematics”: {},

“architect”: {

“build”: {

“builder”: “@angular-devkit/build-angular:browser”,

“options”: {

“outputPath”: “dist/cadastroconta-ui”,

“index”: “src/index.html”,

“main”: “src/main.ts”,

“polyfills”: “src/polyfills.ts”,

“tsConfig”: “src/tsconfig.app.json”,

“assets”: [

“src/favicon.ico”,

“src/assets”

],

“styles”: [

“./node_modules/ng2-toasty/style-bootstrap.css”,

“node_modules/font-awesome/css/font-awesome.min.css”,

“node_modules/primeicons/primeicons.css”,

“node_modules/primeng/resources/themes/nova-light/theme.css”,

“node_modules/primeng/resources/primeng.min.css”,

“src/styles.css”

],

“scripts”: []

},

“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,

“budgets”: [

{

“type”: “initial”,

“maximumWarning”: “2mb”,

“maximumError”: “5mb”

}

]

}

}

},

“serve”: {

“builder”: “@angular-devkit/build-angular:dev-server”,

“options”: {

“browserTarget”: “algamoney-ui-alga:build”

},

“configurations”: {

“production”: {

“browserTarget”: “algamoney-ui-alga:build:production”

}

}

},

“extract-i18n”: {

“builder”: “@angular-devkit/build-angular:extract-i18n”,

“options”: {

“browserTarget”: “algamoney-ui-alga: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”: [

“src/styles.css”

],

“scripts”: [],

“assets”: [

“src/favicon.ico”,

“src/assets”

]

}

},

“lint”: {

“builder”: “@angular-devkit/build-angular:tslint”,

“options”: {

“tsConfig”: [

“src/tsconfig.app.json”,

“src/tsconfig.spec.json”

],

“exclude”: [

“<strong>/node_modules/</strong>”

]

}

}

}

},

“algamoney-ui-alga-e2e”: {

“root”: “e2e/”,

“projectType”: “application”,

“prefix”: “”,

“architect”: {

“e2e”: {

“builder”: “@angular-devkit/build-angular:protractor”,

“options”: {

“protractorConfig”: “e2e/protractor.conf.js”,

“devServerTarget”: “algamoney-ui-alga:serve”

},

“configurations”: {

“production”: {

“devServerTarget”: “algamoney-ui-alga:serve:production”

}

}

},

“lint”: {

“builder”: “@angular-devkit/build-angular:tslint”,

“options”: {

“tsConfig”: “e2e/tsconfig.e2e.json”,

“exclude”: [

“<strong>/node_modules/</strong>”

]

}

}

}

}

},

“defaultProject”: “algamoney-ui-alga”

}

Alguém pode me ajudar ???

Obrigado

Criado 26 de junho de 2019
Respostas 0
Participantes 1