-
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/grep cannot find module cypress-grep or it's corresponding type declarations #24512
Comments
I actually stumbled across this today as well. @clazette Thanks for reporting! |
You bet, @brianharman. |
Hi there, did you guys manage to get this working? If yes, how? |
I've tried several things to no avail. |
We use typescript in our project. I think this is what we have in our project to make it work and hope it helps you in someway figuring out whats wrong with your setup. We use the latest version of Cypress package.json in our devdepencies cypress.config.ts
support/e2e.ts
support/index.d.ts
|
Note if you're on Cypress 11, you'll need to update
|
@samtsai you're just so wrong here! 😄 SuiteConfigOverrides is used to override describe blocks.
|
Before migration it worked for me without any type override with |
Hey gang! I'll see what we can do to get this looked at by the team asap. I was putting together an example project and very quickly hit a wall following the current documentation. Our next major release should be coming out this week, but I'll see that this is looked into. |
Co-authored-by: Jordan <[email protected]> Closes undefined Fixes #24512
The code for this is done in cypress-io/cypress#24844, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Support file, Config file, and the tsconfig file installation instructions are incorrect.
Module names and paths are incorrect.
Support file: I am getting a could not find a declaration file for module @cypress/grep/src/support as that's what I have at the moment. Following the readme, the error is Cannot find module 'cypress-grep'. Additionally, the function appears to be cypressGrep and not registerCypressGrep.
Config file registration:
require('@cypress/grep/src/plugin')(config)
tsconfig.json: the types array addition should be
"@cypress/grep"
I am probably missing something.
Desired behavior
I am able to install the package, follow the configuration instructions, grepping specs works.
Test code to reproduce
n/a
Cypress Version
10.10.0
Node version
16.17.1
Operating System
Windows 10
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: