question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings with Webpack 5

See original GitHub issue
WARNING in ./node_modules/cypress-axe/dist/index.js 16:47-54
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./cypress/support/index.js 3:0-21
 @ ./node_modules/@cypress/webpack-dev-server/dist/loader.js!./node_modules/@cypress/webpack-dev-server/dist/browser.js 2:30-69
 @ ./node_modules/@cypress/webpack-dev-server/dist/browser.js 3:4-41

WARNING in ./node_modules/cypress-axe/dist/index.js 16:77-84
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
 @ ./cypress/support/index.js 3:0-21
 @ ./node_modules/@cypress/webpack-dev-server/dist/loader.js!./node_modules/@cypress/webpack-dev-server/dist/browser.js 2:30-69
 @ ./node_modules/@cypress/webpack-dev-server/dist/browser.js 3:4-41

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Develliotcommented, Nov 8, 2021

Another tip is that if you update to the new webpack dev server, may be you are running tests with cypress component tests you probably want to set the webpack config with something like this:

  devServer: {
    host: "0.0.0.0",
    port: 8080,
    client: {
      overlay: {
        errors: true,
        warnings: false,
      },
    },

because these warns start to appear in an overlay which will cause your tests to fail.

0reactions
srikanthkyathamcommented, Jun 16, 2022

Seems this issue could be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack 5 Issues | Documentation - Web3Auth
This issue is caused due to the fact that the web3.js and ethers.js packages have certain dependencies, which are not present within the...
Read more >
Stats - webpack
Tells stats whether to group modules by their attributes (errors, warnings, assets, optional, orphan, or dependent). module.exports = { //... stats: { ...
Read more >
Webpack 5 errors | ImmutableX Documentation
The reason for this error is that create-react-app uses a version of webpack greater than 5, which, unlike versions < 5, does not...
Read more >
Webpack 5 - quiet warnings originating from node_modules?
Is it possible to tell webpack dev server to ignore this specific kind of warning, or any warning that originates from within the...
Read more >
warnings-to-errors-webpack-plugin - npm
Change every warning as error to ensure safe build. Latest version: 2.3.0, last published: a year ago.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found