Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App build crashes when dev server is running. It will be good if error is handled by checking if dev server is running before build #75095

Open
Farzzn opened this issue Jan 20, 2025 · 2 comments
Labels
create-next-app Related to our CLI tool for quickly starting a new Next.js application.

Comments

@Farzzn
Copy link

Farzzn commented Jan 20, 2025

Link to the code that reproduces this issue

https://github.com/Farzzn/testing-app

To Reproduce

Create application
Run dev server
Run Next Build (in another terminal)

Current vs. Expected behavior

If someone tries to run build commond when dev server is running, he should be prompted that dev server is running. Now it is showing compile error. The error should be handled.

Image

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 16168
  Available CPU cores: 8
Binaries:
  Node: 22.4.1
  npm: 10.8.2
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 15.0.4 // There is a newer version (15.1.5) available, upgrade recommended!
  eslint-config-next: 15.0.4
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.2
Next.js Config:
  output: N/A
 ⚠ There is a newer version (15.1.5) available, upgrade recommended!
   Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
   Read more - https://nextjs.org/docs/messages/opening-an-issue
PS C:\Users\Tutorialspoint\Desktop\Articles\Next Js\next-page-router>

Which area(s) are affected? (Select all that apply)

create-next-app

Which stage(s) are affected? (Select all that apply)

next build (local)

Additional context

No response

@github-actions github-actions bot added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Jan 20, 2025
@rrakesh28
Copy link

Im seeing a linting error in the file pages/display-data/index.tsx. Can you try to fix it and try again?

@Farzzn
Copy link
Author

Farzzn commented Jan 21, 2025

Im seeing a linting error in the file pages/display-data/index.tsx. Can you try to fix it and try again?

The linting error occurred because the dev server is running in background. If I turn off dev server and run build, it will work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
create-next-app Related to our CLI tool for quickly starting a new Next.js application.
Projects
None yet
Development

No branches or pull requests

2 participants