TypeScript Error when deploing game on heroku

I work in VSCode and it shows no errors. Phaser version: 3.18.1, latest types from github repo.


When I try push build to heroku, I have this error:

 webpack --mode production && webpack-dev-server --mode production
   Hash: 97dabd6c0c6aded8c26f
   Version: webpack 4.28.3
   Time: 29441ms
   Built at: 08/13/2019 12:39:39 AM
    1 asset
   Entrypoint main = bundle.js
    [6] (webpack)/buildin/global.js 472 bytes {0} [built]
   [26] ./src/index.ts 1.54 KiB {0} [built]
   [28] ./src/Scenes/Game.ts 6.18 KiB {0} [built] [1 error]
   [29] ./src/Sprites/Player.ts 2.57 KiB {0} [built] [1 error]
   [53] ws (ignored) 15 bytes {0} [optional] [built]
       + 51 hidden modules
   
   ERROR in /tmp/build_9c5d3080ba30ff090da2c66c025a4d35/client/src/Scenes/Game.ts
   ./src/Scenes/Game.ts
   [tsl] ERROR in /tmp/build_9c5d3080ba30ff090da2c66c025a4d35/client/src/Scenes/Game.ts(86,21)
         TS2322: Type 'number[]' is not assignable to type 'boolean'.
   
   ERROR in /tmp/build_9c5d3080ba30ff090da2c66c025a4d35/client/src/Sprites/Player.ts
   ./src/Sprites/Player.ts
   [tsl] ERROR in /tmp/build_9c5d3080ba30ff090da2c66c025a4d35/client/src/Sprites/Player.ts(38,21)
         TS2322: Type 'number[]' is not assignable to type 'boolean'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! game@1.0.0 build: `webpack --mode production && webpack-dev-server --mode 
production`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the game@1.0.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!     /tmp/npmcache.p7O3c/_logs/2019-08-13T00_39_39_296Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! game@1.0.0 heroku-postbuild: `NPM_CONFIG_PRODUCTION=false npm install --prefix 
client && npm run build --prefix client`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the game@1.0.0 heroku-postbuild 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!     /tmp/npmcache.p7O3c/_logs/2019-08-13T00_39_39_314Z-debug.log
-----> Build failed