Application build with Cypress using provided command in official documentation giving error: "Collecting page data .ReferenceError: describe is not defined" #50124
After freshly generating a new application with Cypress using "npx create-next-app@latest --example with-cypress with-cypress-app" command and trying to build it using "npm run build"
Running npm run build is giving the following error:
"Collecting page data.ReferenceError: describe is not defined"a
Expected Behavior
The build should pass with an error.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
CLI (create-next-app)
Link to the code that reproduces this issue or a replay of the bug
npx create-next-app@latest --example with-cypress with-cypress-app
To Reproduce
Describe the Bug
After freshly generating a new application with Cypress using "npx create-next-app@latest --example with-cypress with-cypress-app" command and trying to build it using "npm run build" Running npm run build is giving the following error: "Collecting page data.ReferenceError: describe is not defined"a
Expected Behavior
The build should pass with an error.
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response