I've just started using Cypress component tests with a NextJS app.
I believe I've followed all the steps given in the docs, but I'm getting an error when loading the spec.
Cannot GET /__cypress/src/index.html
The specs pane is forever on "Your tests are loading", and the console has a 404 error on the spec itself.
I checked all artifacts against the Cypress example app, can't see a difference.
cypress.config.js
import { defineConfig } from 'cypress'
export default defineConfig({
component: {
devServer: {
framework: 'next',
bundler: 'webpack'
}
}
})