5

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?

2
  • I'm getting the same, i think a dependency has changed and broke it. Because it was working fine for me yesterday, then I wiped out node_modules and reinstalled, and got this message. So its a dependency changed issue. Check your "~" and "^" dependencies Commented Dec 7, 2016 at 16:46
  • If you remove --bail mode, you can see the full list of errors. It will show you many dozens of Type errors, something with TypeScript is busted. Commented Dec 7, 2016 at 19:25

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.