0

When using Uint32Array with TypeScript and eslint, I to this error.

34:43 error 'Uint32Array' is not defined   no-undef

How do I fix this?

My eslintrc looks like this (YAML syntax used):

env:
  browser: true
  jasmine: true
  jest:
Thorkil Værge
  • 2,727
  • 5
  • 32
  • 48

1 Answers1

0

You need to add "es6": true to you .eslintrc file. This tells eslint to consume the "builtin" globals that the browser JS engine provides.

Thorkil Værge
  • 2,727
  • 5
  • 32
  • 48