I wanted to implement component testing in CRA, but I get an error during configuration:
Your configFile threw an error from: cypress/config/myConfig.config.ts
We stopped running your tests because your config file crashed.
../../Library/Caches/Cypress/12.12.0/Cypress.app/Contents/Resources/app/packages/server/node_modules/@cypress/webpack-dev-server/dist/helpers/createReactAppHandler.js:70:15
68 | }
69 | catch (err) {
> 70 | throw new Error(`Failed to require webpack config at ${webpackConfigPath} with error: ${err}`);
| ^
71 | }
72 | }
73 | exports.cypressGlobals = ['cy', 'Cypress', 'before', 'after', 'context'];
74 | function addCypressToWebpackEslintRulesInPlace(webpackConfig) {
Cypress 12.12.0
I have reinstalled Cypress and I keep getting the same error. Has anyone had a similar error?