getting webpack-dev-server warning on resqInjector.js attaching the error.
vijaykumar19 opened this issue · comments
Compiled with problems:X
WARNING in ../../node_modules/cypress-react-selector/src/resqInjector.js 12:15-22
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
I am stuck here and i see a fix for this in webpack-dev-server but however, along with cypress/webpack-dev-server it didnt work. Kindly help with here. Attached screenshot of the overlay which blocks the cypress event handlers. and after click on X mark, we can see the actual screen.
cypress-error.pdf
could it be that webpack-dev-server
is displaying an error?
https://webpack.js.org/configuration/dev-server/#overlay
module.exports = {
//...
devServer: {
client: {
overlay: {
errors: true,
warnings: false,
},
},
},
};
Applying this configuration to a webpack
build will remove the warning from being displayed.
but it will not mask the warning from cli:
WARNING in ./node_modules/cypress-react-selector/src/resqInjector.js 16:13-20
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted