Every time an error occurs in one of my imported modules, Cypress only provides the vague message Error: Webpack Compilation Error
. It's frustrating not to have a useful error stack to troubleshoot the issue. Is there a way to access more detailed error information?
I'm writing tests in TypeScript and utilizing the cypress-webpack-preprocessor for test code compilation.
Below is the webpack.config.js
configuration passed to cypress-webpack-preprocessor:
module.exports = {
mode: 'development',
module: {
rules: [
{
test: /\.tsx?$/,
exclude: [/node_modules/],
use: [
{
loader: 'ts-loader'
}
]
}
]
},
resolve: {
extensions: ['.ts', '.tsx', '.js']
}
};
Here is a screenshot showing the unhelpful error message received: