Skip to content

The 'compilation' argument must be an instance of Compilation #22682

Discussion options

You must be logged in to vote

It's probably because of two versions of webpack (bundled in next.js and installed as dev-dependency) are conflicting

You can try:
yarn add cypress @cypress/webpack-dev-server html-webpack-plugin@5 webpack@5
and specify webpack5:true in your next.config.js
Source: #15864 (comment)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by William-Owen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants