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

The service was stopped #28227

Open
1 task done
Ahmed-Elbadry99 opened this issue Aug 19, 2024 · 5 comments
Open
1 task done

The service was stopped #28227

Ahmed-Elbadry99 opened this issue Aug 19, 2024 · 5 comments
Labels
angular/build:dev-server area: @angular/build needs: investigation Requires some digging to determine if action is needed

Comments

@Ahmed-Elbadry99
Copy link

Command

build, serve

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

17

Description

when i run server i got this message
An unhandled exception occurred: The service was stopped
See "C:\Users\AE6CA~1.ELB\AppData\Local\Temp\ng-51TnuX\angular-errors.log" for further details.

Minimal Reproduction

ok

Exception or Error

[error] Error: The service was stopped
    at C:\Users\A.elbadry\AppData\Roaming\my-new-project\node_modules\esbuild\lib\main.js:993:26
    at responseCallbacks.<computed> (C:\Users\A.elbadry\AppData\Roaming\my-new-project\node_modules\esbuild\lib\main.js:622:9)
    at Socket.afterClose (C:\Users\A.elbadry\AppData\Roaming\my-new-project\node_modules\esbuild\lib\main.js:613:28)
    at Socket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Your Environment

Angular CLI: 18.2.0
Node: 22.0.0
Package Manager: npm 10.5.1
OS: win32 x64

Angular: 18.2.0
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1802.0
@angular-devkit/build-angular   18.2.0
@angular-devkit/core            18.2.0
@angular-devkit/schematics      18.2.0
@schematics/angular             18.2.0
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10

Anything else relevant?

no

@alan-agius4
Copy link
Collaborator

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?

You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.

This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

@alan-agius4 alan-agius4 added the needs: repro steps We cannot reproduce the issue with the information given label Aug 19, 2024
@Ahmed-Elbadry99
Copy link
Author

every time i create new project i got this error

@alan-agius4
Copy link
Collaborator

In that case, it's likely something to do with the environment.

@sod
Copy link

sod commented Aug 20, 2024

We get this error:

[error] Error: The service was stopped
    at [...]\node_modules\esbuild\lib\main.js:993:26
    ...

as well, when we abort ng serve mid build via CTRL+c. Happens since we upgraded to 18.2.0. Seems like esbuild is not a good citizen here and is confused when the cli is mid-shutdown and throws its own error. Maybe some parts of esbuild are disposed/stopped, but not all of it.

Maybe for you something else fails, but the real error doesn't surface because esbuild does still zombie around until it kills the cli with its own error.

@sanketdeshmukh
Copy link

sanketdeshmukh commented Sep 6, 2024

I'm facing same issue with Angular cli 17.3.9 ESbuild. Node.js v 20.16.0

@alan-agius4 alan-agius4 added needs: investigation Requires some digging to determine if action is needed area: @angular/build angular/build:dev-server and removed needs: repro steps We cannot reproduce the issue with the information given labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
angular/build:dev-server area: @angular/build needs: investigation Requires some digging to determine if action is needed
Projects
None yet
Development

No branches or pull requests

4 participants