Jordi
Jordi

Reputation: 23257

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?

Upvotes: 5

Views: 5577

Answers (1)

TetraDev
TetraDev

Reputation: 17114

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.

Upvotes: 1

Related Questions