❌ 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
import webpackPreprocessor from '@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
import webpackPreprocessor from '@cypress/webpack-batteries-included-preprocessor'; // ❌ Could not find a declaration file for module '@cypress/webpack-batteries-included-preprocessor'
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