Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find global type 'Array'

I'm getting this message when I'm trying to get started my app:

Command:

npm webpack --config config/webpack.prod.js  --progress --profile --bail

Message:

Error in bail mode: [default] Cannot find global type 'Array'.

typescript: 2.0.8 is included on package.json

Any ideas?

like image 522
Jordi Avatar asked Nov 08 '22 06:11

Jordi


1 Answers

I fixed it by doing these steps:

  1. Removing all ~ and ^ prefixes from package dependencies, so they stop auto-updating and breaking stuff.
  2. Updating to [email protected] - version ^2.2.1 was not working suddenly for some reason. Neither did 2.2.1 (without the ^)

That fixed the build Type errors for me.

like image 189
TetraDev Avatar answered Nov 14 '22 22:11

TetraDev