Component testing. Module parse failed. You may need an appropriate loader. React with Webpack. #23059
Replies: 3 comments
-
Having the same issue |
Beta Was this translation helpful? Give feedback.
-
Hi, so it seems for me the issue was occurring because I export a function from my |
Beta Was this translation helpful? Give feedback.
-
@varunaswal thank you. Also want to try such way |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to configure cypress component testing into my application. I Have a custom webpack config and got this error.

here is my loader for cypress.
{
test: /\.ts|\.tsx$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env', '@babel/preset-react'],
},
},
}
PS: This link from the documentation doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions