heroku deployment error Module build failed: BrowserslistError: Unknown browser query `dead`











up vote
0
down vote

favorite












I am having problem deploying angular-app to heroku.
I git is error which pushing to heroku using cli.
Its working on local enviorment when i do ng build --aot -prod on my local machine but when I try to push this on live server. This error occurs.
I tried a lot of different things but nothing seems to work.



Error Is something like this:



remote:        ERROR in ./src/styles.css
remote: Module build failed: BrowserslistError: Unknown browser query `dead`
remote: at /tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:164:11
remote: at Array.reduce (<anonymous>)
remote: at resolve (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:132:18)
remote: at browserslist (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:224:16)
remote: at Browsers.parse (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:61:16)
remote: at new Browsers (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:52:30)
remote: at loadPrefixes (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:70:24)
remote: at plugin (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:81:24)
remote: at LazyResult.run (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/postcss/lib/lazy-result.js:277:20)


My package.json is this:



{
"name": "frontend",
"version": "0.0.0",
"main": "app.js",
"scripts": {
"postinstall": "ng build --aot -prod",
"start": "node server.js",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"engines": {
"node": "8.12.0",
"npm": "6.4.1"
},
"private": true,
"dependencies": {
"@angular/animations": "^4.2.4",
"@angular/cli": "^1.4.9",
"@angular/common": "^4.2.4",
"@angular/compiler": "^4.2.4",
"@angular/compiler-cli": "^4.4.6",
"@angular/core": "^4.2.4",
"@angular/forms": "^4.2.4",
"@angular/http": "^4.2.4",
"@angular/platform-browser": "^4.2.4",
"@angular/platform-browser-dynamic": "^4.2.4",
"@angular/router": "^4.2.4",
"bootstrap": "^4.1.3",
"core-js": "^2.4.1",
"express": "^4.16.4",
"path": "^0.12.7",
"rxjs": "^6.3.3",
"typescript": "~3.1.1",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@angular/animations": "^4.2.4",
"@angular/cli": "^1.4.9",
"@angular/common": "^4.2.4",
"@angular/compiler": "^4.2.4",
"@angular/compiler-cli": "^4.4.6",
"@angular-devkit/build-angular": "~0.10.0",
"@angular/language-service": "~7.0.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~2.8.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "~4.5.0",
"jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~3.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~1.1.2",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.4.0",
"ts-node": "~7.0.0",
"tslint": "~5.11.0",
"typescript": "~3.1.1"
}
}









share|improve this question


























    up vote
    0
    down vote

    favorite












    I am having problem deploying angular-app to heroku.
    I git is error which pushing to heroku using cli.
    Its working on local enviorment when i do ng build --aot -prod on my local machine but when I try to push this on live server. This error occurs.
    I tried a lot of different things but nothing seems to work.



    Error Is something like this:



    remote:        ERROR in ./src/styles.css
    remote: Module build failed: BrowserslistError: Unknown browser query `dead`
    remote: at /tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:164:11
    remote: at Array.reduce (<anonymous>)
    remote: at resolve (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:132:18)
    remote: at browserslist (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:224:16)
    remote: at Browsers.parse (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:61:16)
    remote: at new Browsers (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:52:30)
    remote: at loadPrefixes (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:70:24)
    remote: at plugin (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:81:24)
    remote: at LazyResult.run (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/postcss/lib/lazy-result.js:277:20)


    My package.json is this:



    {
    "name": "frontend",
    "version": "0.0.0",
    "main": "app.js",
    "scripts": {
    "postinstall": "ng build --aot -prod",
    "start": "node server.js",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
    },
    "engines": {
    "node": "8.12.0",
    "npm": "6.4.1"
    },
    "private": true,
    "dependencies": {
    "@angular/animations": "^4.2.4",
    "@angular/cli": "^1.4.9",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/compiler-cli": "^4.4.6",
    "@angular/core": "^4.2.4",
    "@angular/forms": "^4.2.4",
    "@angular/http": "^4.2.4",
    "@angular/platform-browser": "^4.2.4",
    "@angular/platform-browser-dynamic": "^4.2.4",
    "@angular/router": "^4.2.4",
    "bootstrap": "^4.1.3",
    "core-js": "^2.4.1",
    "express": "^4.16.4",
    "path": "^0.12.7",
    "rxjs": "^6.3.3",
    "typescript": "~3.1.1",
    "zone.js": "~0.8.26"
    },
    "devDependencies": {
    "@angular/animations": "^4.2.4",
    "@angular/cli": "^1.4.9",
    "@angular/common": "^4.2.4",
    "@angular/compiler": "^4.2.4",
    "@angular/compiler-cli": "^4.4.6",
    "@angular-devkit/build-angular": "~0.10.0",
    "@angular/language-service": "~7.0.0",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~2.8.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "~4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.1"
    }
    }









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I am having problem deploying angular-app to heroku.
      I git is error which pushing to heroku using cli.
      Its working on local enviorment when i do ng build --aot -prod on my local machine but when I try to push this on live server. This error occurs.
      I tried a lot of different things but nothing seems to work.



      Error Is something like this:



      remote:        ERROR in ./src/styles.css
      remote: Module build failed: BrowserslistError: Unknown browser query `dead`
      remote: at /tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:164:11
      remote: at Array.reduce (<anonymous>)
      remote: at resolve (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:132:18)
      remote: at browserslist (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:224:16)
      remote: at Browsers.parse (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:61:16)
      remote: at new Browsers (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:52:30)
      remote: at loadPrefixes (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:70:24)
      remote: at plugin (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:81:24)
      remote: at LazyResult.run (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/postcss/lib/lazy-result.js:277:20)


      My package.json is this:



      {
      "name": "frontend",
      "version": "0.0.0",
      "main": "app.js",
      "scripts": {
      "postinstall": "ng build --aot -prod",
      "start": "node server.js",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      },
      "engines": {
      "node": "8.12.0",
      "npm": "6.4.1"
      },
      "private": true,
      "dependencies": {
      "@angular/animations": "^4.2.4",
      "@angular/cli": "^1.4.9",
      "@angular/common": "^4.2.4",
      "@angular/compiler": "^4.2.4",
      "@angular/compiler-cli": "^4.4.6",
      "@angular/core": "^4.2.4",
      "@angular/forms": "^4.2.4",
      "@angular/http": "^4.2.4",
      "@angular/platform-browser": "^4.2.4",
      "@angular/platform-browser-dynamic": "^4.2.4",
      "@angular/router": "^4.2.4",
      "bootstrap": "^4.1.3",
      "core-js": "^2.4.1",
      "express": "^4.16.4",
      "path": "^0.12.7",
      "rxjs": "^6.3.3",
      "typescript": "~3.1.1",
      "zone.js": "~0.8.26"
      },
      "devDependencies": {
      "@angular/animations": "^4.2.4",
      "@angular/cli": "^1.4.9",
      "@angular/common": "^4.2.4",
      "@angular/compiler": "^4.2.4",
      "@angular/compiler-cli": "^4.4.6",
      "@angular-devkit/build-angular": "~0.10.0",
      "@angular/language-service": "~7.0.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.0.0",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.1"
      }
      }









      share|improve this question













      I am having problem deploying angular-app to heroku.
      I git is error which pushing to heroku using cli.
      Its working on local enviorment when i do ng build --aot -prod on my local machine but when I try to push this on live server. This error occurs.
      I tried a lot of different things but nothing seems to work.



      Error Is something like this:



      remote:        ERROR in ./src/styles.css
      remote: Module build failed: BrowserslistError: Unknown browser query `dead`
      remote: at /tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:164:11
      remote: at Array.reduce (<anonymous>)
      remote: at resolve (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:132:18)
      remote: at browserslist (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/browserslist/index.js:224:16)
      remote: at Browsers.parse (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:61:16)
      remote: at new Browsers (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/browsers.js:52:30)
      remote: at loadPrefixes (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:70:24)
      remote: at plugin (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/autoprefixer/lib/autoprefixer.js:81:24)
      remote: at LazyResult.run (/tmp/build_55b3f660ded0ff4e4370e6dae7789ca5/node_modules/postcss/lib/lazy-result.js:277:20)


      My package.json is this:



      {
      "name": "frontend",
      "version": "0.0.0",
      "main": "app.js",
      "scripts": {
      "postinstall": "ng build --aot -prod",
      "start": "node server.js",
      "build": "ng build",
      "test": "ng test",
      "lint": "ng lint",
      "e2e": "ng e2e"
      },
      "engines": {
      "node": "8.12.0",
      "npm": "6.4.1"
      },
      "private": true,
      "dependencies": {
      "@angular/animations": "^4.2.4",
      "@angular/cli": "^1.4.9",
      "@angular/common": "^4.2.4",
      "@angular/compiler": "^4.2.4",
      "@angular/compiler-cli": "^4.4.6",
      "@angular/core": "^4.2.4",
      "@angular/forms": "^4.2.4",
      "@angular/http": "^4.2.4",
      "@angular/platform-browser": "^4.2.4",
      "@angular/platform-browser-dynamic": "^4.2.4",
      "@angular/router": "^4.2.4",
      "bootstrap": "^4.1.3",
      "core-js": "^2.4.1",
      "express": "^4.16.4",
      "path": "^0.12.7",
      "rxjs": "^6.3.3",
      "typescript": "~3.1.1",
      "zone.js": "~0.8.26"
      },
      "devDependencies": {
      "@angular/animations": "^4.2.4",
      "@angular/cli": "^1.4.9",
      "@angular/common": "^4.2.4",
      "@angular/compiler": "^4.2.4",
      "@angular/compiler-cli": "^4.4.6",
      "@angular-devkit/build-angular": "~0.10.0",
      "@angular/language-service": "~7.0.0",
      "@types/node": "~8.9.4",
      "@types/jasmine": "~2.8.8",
      "@types/jasminewd2": "~2.0.3",
      "codelyzer": "~4.5.0",
      "jasmine-core": "~2.99.1",
      "jasmine-spec-reporter": "~4.2.1",
      "karma": "~3.0.0",
      "karma-chrome-launcher": "~2.2.0",
      "karma-coverage-istanbul-reporter": "~2.0.1",
      "karma-jasmine": "~1.1.2",
      "karma-jasmine-html-reporter": "^0.2.2",
      "protractor": "~5.4.0",
      "ts-node": "~7.0.0",
      "tslint": "~5.11.0",
      "typescript": "~3.1.1"
      }
      }






      heroku web-deployment






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 10 at 23:51









      Nouman Dilshad

      10714




      10714





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244566%2fheroku-deployment-error-module-build-failed-browserslisterror-unknown-browser%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53244566%2fheroku-deployment-error-module-build-failed-browserslisterror-unknown-browser%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Bressuire

          Vorschmack

          Quarantine