Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__VERSION__ global not defined #18

Open
DavidVollmers opened this issue Jul 31, 2018 · 2 comments
Open

__VERSION__ global not defined #18

DavidVollmers opened this issue Jul 31, 2018 · 2 comments

Comments

@DavidVollmers
Copy link

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:

this.VERSION = __VERSION__;

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)
@br4nnigan
Copy link

is this project abandoned?

@DavidVollmers
Copy link
Author

It is...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants