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

Typings error #96

Open
borislemke opened this issue Nov 11, 2017 · 0 comments
Open

Typings error #96

borislemke opened this issue Nov 11, 2017 · 0 comments

Comments

@borislemke
Copy link

borislemke commented Nov 11, 2017

I tried to create a very basic app (following the example on this repo's README) but got this error when compiling:

TSError: ⨯ Unable to compile TypeScript
src/index.ts (9,9): Property 'on' does not exist on type 'TextRequest'. (2339)
src/index.ts (13,9): Property 'on' does not exist on type 'TextRequest'. (2339)

where line 9 and 13 refer to

request.on('response', function(response) { // 9
    console.log(response)
})

request.on('error', function(error) { // 13
    console.log(error)
})
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

1 participant