iamcco / coc-angular

Angular Language Service coc extension for (neo)vim
146 stars 17 forks source link

ngcc operation failed error on installing plugin #34

Open ankitpal1029 opened 3 years ago

ankitpal1029 commented 3 years ago

I am not quite sure what this error implies can someone help me out in this regard? image

To Reproduce Steps to reproduce the behavior:

  1. Install plugin
  2. The error message shows automatically

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Log:


[Info  - 3:33:55 AM] Angular language server process ID: 26066
[Info  - 3:33:55 AM] Using typescript/lib/tsserverlibrary v4.1.5 from /home/yangit/.config/coc/extensions/node_modules/coc-angular/node_modules/typescript/lib/tsserverlibrary.js
[Info  - 3:33:55 AM] Using @angular/language-service/bundles/ivy v11.2.7 from /home/yangit/.config/coc/extensions/node_modules/coc-angular/node_modules/@angular/language-service/bundles/ivy.js
[Info  - 3:33:55 AM] Logging is turned off. To enable, run command 'Open Angular server log'.
[Error  - 3:34:10 AM] No config file for /home/yangit/BoB/musical-eureka/src/modules/campaigns/containers/campaigns/campaigns.component.html
[Error  - 3:34:10 AM] Failed to run ngcc for /home/yangit/BoB/musical-eureka/tsconfig.json:
    ngcc for /home/yangit/BoB/musical-eureka/tsconfig.json returned exit code 1, stderr: Error: Error on worker #4: Error: Invariant violated: No format-path or format for /home/yangit/BoB/musical-eureka/node_modules/aws-amplify-angular : main (formatPath: bundles/aws-amplify-angular.umd.js | format: undefined)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/create_compile_function.js:47:27
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:85:54
    at step (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:143:27)
    at Object.next (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:124:57)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:113:16)
    at Worker.<anonymous> (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:72:78)
    at Worker.emit (node:events:329:20)
    at process.<anonymous> (node:internal/cluster/worker:32:12)
    at ClusterMaster.onWorkerMessage (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:195:27)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:55:95
    at ClusterMaster.<anonymous> (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:293:57)
    at step (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:143:27)
    at Object.next (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:124:57)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:117:75
    at new Promise (<anonymous>)
    at Object.__awaiter (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:113:16)
    at EventEmitter.<anonymous> (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/master.js:287:32)
    at EventEmitter.emit (node:events:329:20)
node:internal/child_process:839
        const ex = errnoException(err, 'write');
                   ^

Error: write EPIPE
    at process.target._send (node:internal/child_process:839:20)
    at process.target.send (node:internal/child_process:710:19)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:51:21
    at new Promise (<anonymous>)
    at Object.exports.sendMessageToMaster (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:46:16)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:104:66
    at step (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:143:27)
    at Object.throw (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:124:57)
    at rejected (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:115:69)
    at processTicksAndRejections (node:internal/process/task_queues:93:5) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}
node:internal/child_process:839
        const ex = errnoException(err, 'write');
                   ^

Error: write EPIPE
    at process.target._send (node:internal/child_process:839:20)
    at process.target.send (node:internal/child_process:710:19)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:51:21
    at new Promise (<anonymous>)
    at Object.exports.sendMessageToMaster (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:46:16)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:104:66
    at step (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:143:27)
    at Object.throw (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:124:57)
    at rejected (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:115:69)
    at processTicksAndRejections (node:internal/process/task_queues:93:5) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}
node:internal/child_process:839
        const ex = errnoException(err, 'write');
                   ^

Error: write EPIPE
    at process.target._send (node:internal/child_process:839:20)
    at process.target.send (node:internal/child_process:710:19)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:51:21
    at new Promise (<anonymous>)
    at Object.exports.sendMessageToMaster (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/utils.js:46:16)
    at /home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/ngcc/src/execution/cluster/worker.js:104:66
    at step (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:143:27)
    at Object.throw (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:124:57)
    at rejected (/home/yangit/BoB/musical-eureka/node_modules/@angular/compiler-cli/node_modules/tslib/tslib.js:115:69)
    at processTicksAndRejections (node:internal/process/task_queues:93:5) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}
    Language service will remain disabled.
[Info  - 3:34:10 AM] Enabling Ivy language service for /home/yangit/BoB/musical-eureka/tsconfig.json.
el-og commented 2 years ago

Hey @ankitpal1029, I see it's an old issue, but my guess it's related to Node version. Which one do you use? Because I had this issue, on Node 12 or when strictTemplates wasn't working properly.