HumanInput
HumanInput copied to clipboard
__VERSION__ global not defined
Hello there,
I am using your library inside a TypeScript project.
When importing and using the HumanInput class like the following...
import HumanInput from 'humaninput/src/humaninput-full.js'
...
new HumanInput(window)
...this error is thrown:
Uncaught ReferenceError: __VERSION__ is not defined
The problem is that there is global __VERSION__
required at: https://github.com/liftoff/HumanInput/blob/b96967b41afb4c7293848be19a4061024132bdbc/src/humaninput.js#L99
A hacky hotfix for me was to set the global after the import like this:
import HumanInput from 'humaninput/src/humaninput-full.js'
eval( 'window.__VERSION__ = 0' )
...
new HumanInput(window)
is this project abandoned?
It is...