flatlogic / light-blue-react-template

Light Blue React Template - Admin Dashboard Template built with React
https://flatlogic.github.io/light-blue-react-template/#/app/main/dashboard
MIT License
539 stars 180 forks source link

HEROKU deploy failed #15

Closed DEVDASTUDIO closed 3 years ago

DEVDASTUDIO commented 3 years ago

Any idea what is wrong?

-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       USE_YARN_CACHE=true
       NODE_ENV=development
       NODE_MODULES_CACHE=true
       NODE_VERBOSE=false

-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)
       engines.yarn (package.json):  unspecified (use default)

       Resolving node version 12.x...
       Downloading and installing node 12.19.0...
       Using default npm version: 6.14.8
       Resolving yarn version 1.22.x...
       Downloading and installing yarn (1.22.10)
       Installed yarn 1.22.10

-----> Installing dependencies
       Installing node modules (yarn.lock)
       yarn install v1.22.10
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       info fsevents@1.2.13: The platform "linux" is incompatible with this module.
       info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
       info fsevents@2.1.3: The platform "linux" is incompatible with this module.
       info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
       [3/4] Linking dependencies...
       warning " > bootstrap@4.5.0" has unmet peer dependency "jquery@1.9.1 - 3".
       warning " > bootstrap@4.5.0" has unmet peer dependency "popper.js@^1.16.0".
       warning " > echarts-for-react@2.0.16" has unmet peer dependency "prop-types@^15.5.7".
       warning " > react-google-maps@9.4.5" has unmet peer dependency "@types/googlemaps@^3.0.0".
       warning " > react-google-maps@9.4.5" has unmet peer dependency "@types/markerclustererplus@^2.1.29".
       warning " > react-google-maps@9.4.5" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
       warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/eslint-plugin@1.x".
       warning " > eslint-config-react-app@4.0.1" has unmet peer dependency "@typescript-eslint/parser@1.x".
       warning " > eslint-config-react-app@4.0.1" has incorrect peer dependency "eslint-plugin-flowtype@2.x".
       [4/4] Building fresh packages...
       Done in 81.28s.

-----> Build
       Running build (yarn)
       yarn run v1.22.10
       $ node scripts/build.js
       Creating an optimized production build...
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 146 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 147 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 198 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 199 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 200 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 201 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 202 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 203 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 204 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 205 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 206 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 207 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 208 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 209 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 210 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 211 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 212 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: The `bg-variant` mixin has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 15 of node_modules/bootstrap/scss/mixins/_background-variant.scss, in mixin `bg-variant`
         from line 213 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 230 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 231 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 232 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 233 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 234 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 235 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 236 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 237 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 238 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 239 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 240 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 241 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 242 of src/styles/_utils.scss
         from line 23 of stdin
WARNING: `text-emphasis-variant()` has been deprecated as of v4.4.0. It will be removed entirely in v5.
         on line 8 of node_modules/bootstrap/scss/mixins/_deprecate.scss, in mixin `deprecate`
         from line 16 of node_modules/bootstrap/scss/mixins/_text-emphasis.scss, in mixin `text-emphasis-variant`
         from line 243 of src/styles/_utils.scss
         from line 23 of stdin
       Failed to compile.

       Please check your GenerateSW plugin configuration:
       navigateFallbackBlacklist has been renamed navigateFallbackDenylist.

error Command failed with exit code 1.
       info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       Some possible problems:

       - Node version not specified in package.json
         https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

       Love,
       Heroku

 !     Push rejected, failed to compile Node.js app.
 !     Push failed
DEVDASTUDIO commented 3 years ago

I have commented these lines in config/webpack.config.prod.js and then pushed to heroku , its working now. importWorkboxFrom and replaced navigateFallbackBlacklist with navigateFallbackDenylist: [

 new WorkboxWebpackPlugin.GenerateSW({
      clientsClaim: true,
      exclude: [/\.map$/, /asset-manifest\.json$/],
     // importWorkboxFrom: 'cdn',
      navigateFallback: publicUrl + '/index.html',
      //navigateFallbackBlacklist: [
      navigateFallbackDenylist: [