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

Typescript ReactSelector support withKey function #163

Open
gothraven opened this issue Jan 16, 2020 · 3 comments
Open

Typescript ReactSelector support withKey function #163

gothraven opened this issue Jan 16, 2020 · 3 comments

Comments

@gothraven
Copy link

gothraven commented Jan 16, 2020

I have checked if there was already a similar reported issue but I haven't find anything so far, I would like to report that withKey() function gives the following error.

import { ReactSelector } from 'testcafe-react-selectors';

const example = ReactSelector('Grid').withKey('example');

TS2339: Property 'withKey' does not exist on type 'Selector'.

Versions:

~ node --version
v8.16.2

~ npm --version
6.4.1

~ cat package.json | grep "testcafe-react-selectors"
"testcafe-react-selectors": "^4.0.0",
@arubtsov
Copy link
Contributor

Hello @gothraven,

I was not able to reproduce this behavior. Could you please specify the testcafe version you are using?

@gothraven
Copy link
Author

I'll drop all testcafe related packages if any of them would help

~ cat package.json | grep "testcafe"
"eslint-plugin-testcafe": "^0.2.1",
"testcafe": "^1.2.1",
"testcafe-react-selectors": "^4.0.0",

@aleks-pro
Copy link

Hi @gothraven ,

Please update to the latest TestCafe version. If it doesn't help, provide us with a simple test example on which we will be able to reproduce the issue.

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

No branches or pull requests

3 participants