-
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
Cannot find module 'tslib' on fresh installation #8162
Comments
I'm not able to reproduce this from the instructions given. Can you provide a repo of code that reproduces this issue? Do you have any specific code in cypress folders / cypress.json, tsconfig, other dependencies in your project for example? Did you start from some cli framework to add cypress tests? Node.js version / yarn version? |
Faced this issue as well. I had some issues with some modules so i did a fresh yarn install after deleting the yarn.lock and node_modules. |
I ran into this issue in a TypeScript project and it was due to #7503, which will apparently be resolved in v5. For now, I switched to v4.3 which doesn't have this problem. |
@jennifer-shehane I created a new nx workspace and ran into this issue as well. nothing special done. |
Yeah, 5.0 should have some typescript improvements coming up, so this may be resolved there. |
@jennifer-shehane Thanks for the quick response, do you happen to know what's the estimated release date on v5? so I'll know when to re-check this |
@shaharkazaz We are in the middle of releasing and blocked on this issue atm #8299 So whenever that is resolved. |
I narrowed it down to this typescript config setting:
https://webhint.io/docs/user-guide/hints/hint-typescript-config/import-helpers/
The docs for it calls out the tslib package by name, so the story checks out. Now the question is, why would this conflict with Cypress? You can reliably reproduce this by creating a brand new Create React App with TypeScript, installing Cypress, and then adding
|
@stevensacks check out #7503. Maintainers might want to mark this as duplicate of #7503 and close (👋 @jennifer-shehane) |
5.0 was released, so if the above was related to #7503 - this issue should be fixed. Can anyone confirm if their issue is resolved when updating to 5.0.0? |
Got a repro of this that occurs in both 4.12.1 and 5.0.0 from #8369: Repro
Edit {
"compilerOptions": {
"importHelpers": true,
"allowJs": true
},
"files": [],
"references": [
{
"path": "./tsconfig.app.json"
},
{
"path": "./tsconfig.spec.json"
}
]
}
|
@jennifer-shehane in my thread that you marked as a duplicate of this one and closed, I mentioned that I was using Cypress 5. |
Wrong command, try |
Upgrading cypress to |
Version |
Closing as resolved. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
On a fresh install and launch (
yarn run cypress open
) I am receiving the following:Desired behavior:
I expected to be met with the Cypress test runner.
Test code to reproduce
Versions
Cypress 4.11.0
macOS Catalina 10.15.5 Beta
The text was updated successfully, but these errors were encountered: