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

Error: write EPIPE occurs in ng serve #8355

Closed
sheikalthaf opened this issue Nov 5, 2017 · 5 comments
Closed

Error: write EPIPE occurs in ng serve #8355

sheikalthaf opened this issue Nov 5, 2017 · 5 comments
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken

Comments

@sheikalthaf
Copy link
Contributor

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

Versions.

Angular CLI: 1.5.0
Node: 8.9.0
OS: win32 ia32
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.0
typescript: 2.4.2
webpack: 3.8.1

Repro steps.

ng serve
This bug has occurred when any file changes. it doesn't occur frequently

The log given by the failure.

ERROR in Error: write EPIPE
    at _errnoException (util.js:1024:11)
    at ChildProcess.target._send (internal/child_process.js:702:20)
    at ChildProcess.target.send (internal/child_process.js:586:19)
    at AngularCompilerPlugin._updateForkedTypeChecker (C:\Users\Sheik Althaf\Documents\angular\butterflySchool\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:370:34)
    at Promise.resolve.then (C:\Users\Sheik Althaf\Documents\angular\butterflySchool\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:208:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

Desired functionality.

breaks the ng serve

Mention any other details that might be useful.

@stefanKuijers
Copy link

stefanKuijers commented Nov 7, 2017

Same here but for me it happens very frequently.
Steps to reproduce:

  1. ng new myApp
  2. ng serve --open
  3. Change any file and save
Node: 8.0.0
OS: win32 ia32
Angular: 5.0.0
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

@angular/cli: 1.5.0
@angular-devkit/build-optimizer: 0.0.32
@angular-devkit/core: 0.0.20
@angular-devkit/schematics: 0.0.35
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.8.0
@schematics/angular: 0.1.1
typescript: 2.4.2
webpack: 3.8.1

Same error:

ERROR in Error: write EPIPE
    at exports._errnoException (util.js:1026:11)
    at ChildProcess.target._send (internal/child_process.js:665:20)
    at ChildProcess.target.send (internal/child_process.js:549:19)
    at AngularCompilerPlugin._updateForkedTypeChecker (D:\dev\angular-cli\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:370:34)
    at Promise.resolve.then (D:\dev\angular-cli\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:208:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)

webpack: Failed to compile.

Only difference is that It's every two or three saves. Some times I get another error:

ERROR in Error [ERR_IPC_CHANNEL_CLOSED]: channel closed
    at ChildProcess.target.send (internal/child_process.js:551:16)
    at AngularCompilerPlugin._updateForkedTypeChecker (D:\dev\angular-cli\angular-cli\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:370:34)
    at Promise.resolve.then (D:\dev\angular-cli\angular-cli\node_modules\@ngtools\webpack\src\angular_compiler_plugin.js:208:22)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:169:7)

@stefanKuijers
Copy link

stefanKuijers commented Nov 7, 2017

Could it be related to this issue?

Tried with Yarn and NPM (both new projects) but same results.

@stefanKuijers
Copy link

I updated my node to v8.9.1 and I don;'t have the problem any more.

Fixed for me!

@Brocco Brocco added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken labels Nov 13, 2017
@filipesilva
Copy link
Contributor

#8090 together with #8646 should have fixed this problem generally.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent severity3: broken
Projects
None yet
Development

No branches or pull requests

4 participants