vercel / next.js

The React Framework
https://nextjs.org
MIT License
124.69k stars 26.62k forks source link

Nextjs application build with Cypress using provided command in official documentation(https://nextjs.org/docs/pages/building-your-application/optimizing/testing) giving error: "Collecting page data .ReferenceError: describe is not defined" #50125

Closed anuj39934 closed 6 months ago

anuj39934 commented 1 year ago

Verify canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000
    Binaries:
      Node: 20.0.0
      npm: 9.6.4
      Yarn: 1.22.19
      pnpm: N/A
    Relevant packages:
      next: 13.4.3
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 4.7.4

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

balazsorban44 commented 6 months ago

Duplicate of #50124

github-actions[bot] commented 5 months ago

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.