angular2-busy icon indicating copy to clipboard operation
angular2-busy copied to clipboard

AoT compilation issue

Open namlard opened this issue 8 years ago • 8 comments

Hi ! I'm submitting you an issue i'm currently facing when i use your module. Here is the error log :

Error: ENOENT: no such file or directory, open '/home/nicolasa/project/dummy/dist/node_modules/angular2-busy/index.metadata.json' at Object.fs.openSync (fs.js:651:18) at Object.fs.writeFileSync (fs.js:1300:33) at MetadataWriterHost.writeMetadata (/home/nicolasa/project/dummy/node_modules/@angular/tsc-wrapped/src/compiler_host.js:120:22) at MetadataWriterHost._this.writeFile (/home/nicolasa/project/dummy/node_modules/@angular/tsc-wrapped/src/compiler_host.js:97:23) at Object.writeFile (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:67339:132) at Object.writeFile (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:9117:14) at printSourceFileOrBundle (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:64234:16) at emitSourceFileOrBundle (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:64185:21) at Object.forEachEmittedFile (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:9083:17) at Object.emitFiles (/home/nicolasa/project/dummy/node_modules/typescript/lib/typescript.js:64170:12) Compilation failed npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] build: ngc -p ./tsconfig-aot.json && npm run rollup npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /home/nicolasa/.npm/_logs/2017-09-14T07_54_44_533Z-debug.log

You'll be able to find a small project that reproduce this issue at : https://embed.plnkr.co/IdODE3Wyz9oNuINfnYp7/

Can you give me a hand to know if it comes from your module or one of my config file ?

namlard avatar Sep 14 '17 08:09 namlard

It seems like ng2-busy breaks AOT compilation. Is there a fix planned?

Mattnmoore avatar Sep 28 '17 22:09 Mattnmoore

@Mattnmoore: This was fixed in this unmerged PR: https://github.com/devyumao/angular2-busy/pull/67.

mario-nguyen avatar Sep 29 '17 01:09 mario-nguyen

Any plans to merge it in?

Mattnmoore avatar Sep 29 '17 02:09 Mattnmoore

ngx-busy

https://www.npmjs.com/package/ngx-busy

yuechong avatar Oct 12 '17 05:10 yuechong

moved to ng-busy and it worked well with angular 5.2.0

gravypower avatar Jan 16 '18 19:01 gravypower

I do not understand why instead of trying to contribute to the current project by correcting the problems the developers create a project rewriting.

deyvidfk avatar Jan 16 '18 19:01 deyvidfk

@deyvidfk there is an open pull request to fix this (https://github.com/devyumao/angular2-busy/pull/67), this has been open since Jun 22, 2017. Maybe the author of ng-busy got sick of waiting for the pull request to be merged in.

gravypower avatar Jan 16 '18 19:01 gravypower

@gravypower There are several requests for correction, and due to abandonment, for each problem, new repositories are created from this.

Anyway, I also appreciate your contribution.

I definitely need something more stable. I'll look into if I can migrate to your repository and if I can help with something.

deyvidfk avatar Jan 16 '18 20:01 deyvidfk