You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ The webpack preprocessor @cypress/webpack-batteries-included-preprocessor does not include TypeScript types
This means that imports of @cypress/webpack-batteries-included-preprocessor fail type checking:
cypress.config.ts
importwebpackPreprocessorfrom'@cypress/webpack-batteries-included-preprocessor';// ❌ Could not find a declaration file for module '@cypress/webpack-batteries-included-preprocessor'
Full error message:
Could not find a declaration file for module '@cypress/webpack-batteries-included-preprocessor'. '/Users/k/p/project/node_modules/@cypress/webpack-batteries-included-preprocessor/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/cypress__webpack-batteries-included-preprocessor` if it exists or add a new declaration (.d.ts) file containing `declare module '@cypress/webpack-batteries-included-preprocessor';`ts(7016)
The package @types/cypress__webpack-batteries-included-preprocessor also does not exist in DefinitelyTyped.
Desired behavior
@cypress/webpack-batteries-included-preprocessor should have types
Test code to reproduce
cypress.config.ts
importwebpackPreprocessorfrom'@cypress/webpack-batteries-included-preprocessor';// ❌ Could not find a declaration file for module '@cypress/webpack-batteries-included-preprocessor'
Cypress Version
12.6.0
Node version
18.14.1
Operating System
macOS Ventura 13.2.1 (22D68)
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered:
Current behavior
@cypress/webpack-preprocessor
includes TypeScript types@cypress/webpack-batteries-included-preprocessor
does not include TypeScript typesThis means that imports of
@cypress/webpack-batteries-included-preprocessor
fail type checking:cypress.config.ts
Full error message:
The package
@types/cypress__webpack-batteries-included-preprocessor
also does not exist in DefinitelyTyped.Desired behavior
@cypress/webpack-batteries-included-preprocessor
should have typesTest code to reproduce
cypress.config.ts
Cypress Version
12.6.0
Node version
18.14.1
Operating System
macOS Ventura 13.2.1 (22D68)
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: