-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Cypress 3.3.1/3.3.0/3.2.0: Error TS2688: Cannot find type definition file for '../sinon' #4272
Comments
can you try something for me please? Can you edit the file
with
and see if it solves this for you? |
The quick fix with removing of
It worked. Updated to cypress 3.3.1 today and this crashed cypress again because of the same issue. |
Is anybody looked at this issue? |
@Postavshik Can you provide what is logged to the stdout during the 'crash' of Cypress? Could you run Cypress in debug mode mode and print the logs here? Thanks! |
@jennifer-shehane isn't the screenshot above with the error not what your are asking about? |
@Postavshik this is very weird, since other people (and we ourselves) do not see this issue happening. Might be this specific version of TypeScript. As a precaution, let me change the comment to use |
@bahmutov Yup, sound strange. We have tried it on different computers mac and windows. All computers had the same issue as mine. I have tried to change typescript to the latest (my current version is 2.9.2), but it didn't work as well. |
@Postavshik I have changed the reference comment and added a few sinon-chai tests in #4382 let's see if that solves the issue when it is released |
The code for this is done in cypress-io/cypress#4382, but has yet to be released. |
Released in |
Current behavior:
After I have upgraded from Cypress 3.1.5 to 3.3.0, Cypress is throwing the error on compile
Then I have tried 3.2.0 and had the same issue. When revered to 3.1.5 - issue is gone.
I have tried to remove node_modules, clear npm cash and make a clean installation for every version of Cypress. No luck.
Desired behavior:
3.2.0 and 3.3.0 should compile and run tests without issues.
Steps to reproduce: (app code and test code)
Versions
Cypress: 3.3.0/3.2.0
macOS Mojave v.10.14.5
Chrome 74, Electron 59/61
Package.json
The text was updated successfully, but these errors were encountered: