Skip to content

BroccoliTypscriptCompiler error during ng serve #403

Closed

Description

@0x-r4bbit

Running ng serve and making a change to a file gives me the following error:

The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
Error: EEXIST: file already exists, link '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/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/tmp/broccoli_type_script_compiler-cache_path-g6eAeTvI.tmp/src/client/app/contact-header/contact-header.js.map' -> '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/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/tmp/broccoli_type_script_compiler-output_path-z1rCCzws.tmp/src/client/app/contact-header/contact-header.js.map'
    at Error (native)
    at Object.fs.linkSync (fs.js:918:18)
    at BroccoliTypeScriptCompiler._outputFile (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:205:8)
    at Object.writeFile (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:163:14)
    at Object.writeFile (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:6515:14)
    at writeEmittedFiles (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:32726:24)
    at doEmit (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:32594:17)
    at emitFile (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:39322:17)
    at onSingleFileEmit (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:6483:13)
    at Object.forEachExpectedEmitFile (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/typescript/lib/typescript.js:6457:21)

The broccoli plugin was instantiated at: 
    at BroccoliTypeScriptCompiler.Plugin (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/broccoli-caching-writer/node_modules/broccoli-plugin/index.js:10:31)
    at BroccoliTypeScriptCompiler.CachingWriter [as constructor] (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/broccoli-caching-writer/index.js:21:10)
    at BroccoliTypeScriptCompiler (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:26:10)
    at Angular2App.toTree.Angular2App._getTsTree (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/lib/broccoli/angular2-app.js:249:16)
    at Angular2App.toTree (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/lib/broccoli/angular2-app.js:37:21)
    at module.exports (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/angular-cli-build.js:14:14)
    at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:55:19)
    at Class.module.exports.Task.extend.init (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:89:10)
    at new Class (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/angular-cli/node_modules/core-object/core-object.js:18:12)
    at Class.module.exports.Task.extend.run (/Users/pascalprecht/projects/thoughtram/angular2-master-class-solutions/node_modules/angular-cli/node_modules/angular-cli/lib/tasks/serve.js:15:19)

This error does not occur when I kill the serve process and start it again.

Activity

  1. 0x-r4bbit commented on Apr 7, 2016

    @0x-r4bbit
    Author

    I should add that this only appears when ng serve threw a TS compiler error anyway.

    So when there's a TS error, and I fix it, I get the error mentioned above

  2. jkuri commented on Apr 7, 2016

    @jkuri
    Contributor

    Also for me. @hansl is aware of that issue.

  3. jp5486 commented on Apr 8, 2016

    @jp5486

    I am having the same issue except the error is still persisting after attempting to serve again

  4. jp5486 commented on Apr 8, 2016

    @jp5486

    `file changed app.ts
    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: EEXIST: file already exists, link '/Users/JeremyP/Desktop/sleepdiary/tmp/broccoli_type_script_compiler-cache_path-v690MQVD.tmp/src/app/entry/entry.service.js.map' -> '/Users/JeremyP/Desktop/sleepdiary/tmp/broccoli_type_script_compiler-output_path-DvdvYPCa.tmp/src/app/entry/entry.service.js.map'
    at Error (native)
    at Object.fs.linkSync (fs.js:966:18)
    at BroccoliTypeScriptCompiler._outputFile (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:205:8)
    at Object.writeFile (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:163:14)
    at Object.writeFile (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:6515:14)
    at writeEmittedFiles (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:32726:24)
    at doEmit (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:32594:17)
    at emitFile (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:39322:17)
    at onSingleFileEmit (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:6483:13)
    at Object.forEachExpectedEmitFile (/Users/JeremyP/Desktop/sleepdiary/node_modules/typescript/lib/typescript.js:6457:21)

    The broccoli plugin was instantiated at:
    at BroccoliTypeScriptCompiler.Plugin (/Users/JeremyP/Desktop/sleepdiary/node_modules/broccoli-plugin/index.js:10:31)
    at BroccoliTypeScriptCompiler.CachingWriter as constructor
    at BroccoliTypeScriptCompiler (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:25:35)
    at Angular2App.toTree.Angular2App._getTsTree (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/broccoli/angular2-app.js:249:16)
    at Angular2App.toTree (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/broccoli/angular2-app.js:37:21)
    at module.exports (/Users/JeremyP/Desktop/sleepdiary/angular-cli-build.js:9:14)
    at Class.module.exports.Task.extend.setupBroccoliBuilder (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/models/builder.js:55:19)
    at Class.module.exports.Task.extend.init (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/models/builder.js:89:10)
    at new Class (/Users/JeremyP/Desktop/sleepdiary/node_modules/core-object/core-object.js:18:12)
    at Class.module.exports.Task.extend.run (/Users/JeremyP/Desktop/sleepdiary/node_modules/angular-cli/lib/tasks/serve.js:15:19)

    `

  5. vt5491 commented on Apr 8, 2016

    @vt5491

    I'm getting the same behavior upon fixing a bug, except I get:

    Error: Trying to add a new entry to an already existing one:

    I have an open stackoverflow question with more details. Resetting the server does work for me.

    Here is the full error text:

    [file changed app/vtClass.ts
    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: Trying to add a new entry to an already existing one: /home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-hVpXnhDr.tmp/0/src/app/ang2-cli2.spec.ts
        at BroccoliTypeScriptCompiler._addNewFileEntry (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:215:13)
        at /home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:159:38
        at Array.forEach (native)
        at BroccoliTypeScriptCompiler._doFullBuild (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:159:16)
        at BroccoliTypeScriptCompiler._doIncrementalBuild (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:116:12)
        at BroccoliTypeScriptCompiler.build (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:45:12)
        at /home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-caching-writer/index.js:152:21
        at lib$rsvp$$internal$$tryCatch (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1036:16)
        at lib$rsvp$$internal$$invokeCallback (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1048:17)
        at lib$rsvp$$internal$$publish (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1019:11)
    
    The broccoli plugin was instantiated at: 
        at BroccoliTypeScriptCompiler.Plugin (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-plugin/index.js:10:31)
        at BroccoliTypeScriptCompiler.CachingWriter [as constructor] (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-caching-writer/index.js:21:10)
        at BroccoliTypeScriptCompiler (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:25:35)
        at Angular2App.toTree (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/angular2-app.js:67:16)
        at module.exports (/home/vturner/vtstuff/angular/projects/ang2-cli2/angular-cli-build.js:14:14)
        at Class.module.exports.Task.extend.setupBroccoliBuilder (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:55:19)
        at Class.module.exports.Task.extend.init (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:89:10)
        at new Class (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/core-object/core-object.js:18:12)
        at Class.module.exports.Task.extend.run (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/tasks/serve.js:15:19)
        at /home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/commands/serve.js:70:22](url)
    
    

    A problem deleting old files like this prior ticket?

  6. vt5491 commented on Apr 8, 2016

    @vt5491

    I upgraded to watchman as recommended under the ember-cli web site to see if this would fix the problem. Unfortunately, it did not.

    So the problem happens with NodeWatcher and Watchman.

    I also tried the emacs lockfile fixes as recommended under the ember-cli site, but no effect here either.

    I am running Linux mint 17.3.

    The problem is also reproducible for me under windows 10.

  7. vt5491 commented on Apr 8, 2016

    @vt5491

    Since this problem was really bugging me -- to the point where I just couldn't work with angular-cli anymore, I just looked at the stack trace and basically zapped the code to ignore these problems. I've been using it for several hours now, and everything seems to work fine. I would think a real fix would be about figuring out why it's trying to use duplicate files, but here's what I did anyway:

    1. edit module
      node_modules/angular-cli/lib/broccoli/broccoli-typescript.js

    2. edit method _addNewFileEntry like so (altered code marked by my initials 'vt'):

     _addNewFileEntry(entry) {
        const p = path.join(this.inputPaths[0], entry.relativePath);
        if (this._fileRegistry[p]) {
          //vt add
          console.log("vt.broccoli-typescript.js: intercepting dupicate entry error for" + p);
          //vt end
          //vtthrow new Error('Trying to add a new entry to an already existing one: ' + p);
        }
    
    1. edit method _outputFile:
    _outputFile(absoluteFilePath, fileContent, registry) {
    absoluteFilePath = path.resolve(this.cachePath, absoluteFilePath);
    // Replace the input path by the output.
    absoluteFilePath = absoluteFilePath.replace(this.inputPaths[0], this.cachePath);
    const outputFilePath = absoluteFilePath.replace(this.cachePath, this.outputPath);
    
    if (registry) {
      registry.outputs.add(absoluteFilePath);
    }
    
    fse.mkdirsSync(path.dirname(absoluteFilePath));
    const content = this.fixSourceMapSources(fileContent);
    fs.writeFileSync(absoluteFilePath, content, FS_OPTS);
    
    //vt add
    try {
    //vt end
      fse.mkdirsSync(path.dirname(outputFilePath));
      fs.linkSync(absoluteFilePath, outputFilePath);
    //vt add
    }
    catch (e) {
      console.log('_outputFile: caught error ' + e);
    }
    //vt end
    }
    

    A full output log now looks like:

        file changed app/vtClass.ts
    --> Initial Error:
    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: Typescript found the following errors:
      /home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/vtClass.ts (22,28): Cannot find module './webvr-manager'.
        at BroccoliTypeScriptCompiler._doIncrementalBuild (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:112:19)
        at BroccoliTypeScriptCompiler.build (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:45:12)
        at /home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-caching-writer/index.js:152:21
        at lib$rsvp$$internal$$tryCatch (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1036:16)
        at lib$rsvp$$internal$$invokeCallback (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1048:17)
        at lib$rsvp$$internal$$publish (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1019:11)
        at lib$rsvp$asap$$flush (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/rsvp/dist/rsvp.js:1198:9)
        at _combinedTickCallback (internal/process/next_tick.js:67:7)
        at process._tickCallback (internal/process/next_tick.js:98:9)
    
    The broccoli plugin was instantiated at: 
        at BroccoliTypeScriptCompiler.Plugin (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-plugin/index.js:10:31)
        at BroccoliTypeScriptCompiler.CachingWriter [as constructor] (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/broccoli-caching-writer/index.js:21:10)
        at BroccoliTypeScriptCompiler (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/broccoli-typescript.js:25:35)
        at Angular2App.toTree (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/lib/broccoli/angular2-app.js:67:16)
        at module.exports (/home/vturner/vtstuff/angular/projects/ang2-cli2/angular-cli-build.js:14:14)
        at Class.module.exports.Task.extend.setupBroccoliBuilder (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:55:19)
        at Class.module.exports.Task.extend.init (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/models/builder.js:89:10)
        at new Class (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/core-object/core-object.js:18:12)
        at Class.module.exports.Task.extend.run (/home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/tasks/serve.js:15:19)
        at /home/vturner/vtstuff/angular/projects/ang2-cli2/node_modules/angular-cli/node_modules/angular-cli/lib/commands/serve.js:70:22
    
    --> addNewFileEntry errors
    file changed app/vtClass.ts
    file changed app/vtClass.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/ang2-cli2.spec.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/ang2-cli2.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/route-config.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/vtClass.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app/vtInterface.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/app.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/src/typings.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/angular-protractor/angular-protractor.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/es6-shim/es6-shim.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/jasmine/jasmine.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/selenium-webdriver/selenium-webdriver.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/three/index.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/three-vrcontrols/index.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/three-vreffect/index.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/ambient/webvr-boilerplate/index.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser/definitions/webvr-boilerplate/index.d.ts
    vt.broccoli-typescript.js: intercepting dupicate entry error for/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-input_base_path-01oP2v39.tmp/0/typings/browser.d.ts
    
    -->_outputFIle errors:
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/route-config.js.map' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/route-config.js.map'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/route-config.js' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/route-config.js'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/vtClass.js.map' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/vtClass.js.map'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/vtClass.js' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/vtClass.js'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/ang2-cli2.js.map' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/ang2-cli2.js.map'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/ang2-cli2.js' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/ang2-cli2.js'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app.js.map' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app.js.map'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app.js' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app.js'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/ang2-cli2.spec.js.map' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/ang2-cli2.spec.js.map'
    _outputFile: caught error Error: EEXIST: file already exists, link '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-cache_path-TR5DIkaE.tmp/src/app/ang2-cli2.spec.js' -> '/home/vturner/vtstuff/angular/projects/ang2-cli2/tmp/broccoli_type_script_compiler-output_path-ccx0ICfu.tmp/src/app/ang2-cli2.spec.js'
    
    Build successful - 4295ms.
    
    Slowest Trees                                 | Total               
    ----------------------------------------------+---------------------
    BroccoliTypeScriptCompiler                    | 3986ms              
    
    Slowest Trees (cumulative)                    | Total (avg)         
    ----------------------------------------------+---------------------
    BroccoliTypeScriptCompiler (1)                | 3986ms              
    
    

    Note the Build Successful message at the end, instead of having to hit Ctrl-C and cycle the server. Once you get the condition, you always seem to get it e.g it seems to keep using the same tmp files over and over (?)

  8. jkuri commented on Apr 8, 2016

    @jkuri
    Contributor

    @vt5491 thanks for this, but IMO this is complex enough to let @hansl do the work. He rewrote the whole broccoli-typescript.js about a week ago and knows how things are in compiler. Since there's a really lousy docs about TS compiler or even not existent please wait, I think the patch is coming soon.

  9. vt5491 commented on Apr 8, 2016

    @vt5491

    That's good news. Looking forward to the official patch.

  10. jkuri commented on Apr 11, 2016

    @jkuri
    Contributor

    This has been resolved with #416.

  11. 7 remaining items

  12. alonp99 commented on Jul 15, 2016

    @alonp99

    +1 with cli beta.9 & angular2 rc.4

  13. lfvepclr commented on Jul 17, 2016

    @lfvepclr

    +1 with cli beta.9 & angular2 rc.4

  14. Crypt0Graphic commented on Aug 2, 2016

    @Crypt0Graphic

    I had same weird problem with Angular-cli 1.0.0-beta.10 & Angular2 RC4

  15. jkuri commented on Aug 2, 2016

    @jkuri
    Contributor

    Does that happens when you delete some of the source file?

  16. sirajc commented on Aug 2, 2016

    @sirajc

    Check if this is repro in .11 version

  17. Crypt0Graphic commented on Aug 3, 2016

    @Crypt0Graphic

    I found my problem. (It was not same problem as in this topic. Sorry.)

    When i add a parameter to constructor in my component (member.component.ts) i didn't update test file (member.component.spec.ts) manually. And i got error from tmp folder like below:

    .../tmp/broccoli_type_script_compiler-input_base_path-gSIkus6k.tmp/0/src/app/mng/mng.component.spec.ts (10, 21): Supplied parameters do not match any signature of call target.

    When i deleted/commented describe section in member.component.spec.ts, it was builded normally and error has gone.

    So if you see an error about spec.ts and parameters, think about test file. Weird one is error does not tell about exact file.

  18. chanducky commented on Aug 6, 2016

    @chanducky

    I am using following versions

    +-- angular-cli@1.0.0-beta.10
    | +-- ember-cli@2.5.0
    | | +-- npm@2.14.21
    | | | -- graceful-fs@4.1.3 | |-- yam@0.0.18
    | | -- fs-extra@0.16.5 | |-- graceful-fs@3.0.8
    | +-- fs-extra@0.30.0
    | | -- graceful-fs@4.1.4 |-- npm@3.10.2
    | -- graceful-fs@4.1.4 -- karma@0.13.22
    `-- graceful-fs@4.1.5

    My app was working fine once I close the cmd and start again, I am getting below errors :

    `
    C:\Users\Chandra\Desktop\angi\a2todos>ng serve
    (node:1940) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
    Livereload server on http://localhost:49152
    Serving on http://localhost:4200/
    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: Typescript found the following errors:
    C:/Users/Chandra/Desktop/angi/a2todos/tmp/broccoli_type_script_compiler-input_base_path-WD7fUJ9p.tmp/0/src/app/todos/todos.component.spec.ts (10, 21): Supplied parameters do not match any signature of call target.
    at BroccoliTypeScriptCompiler._doIncrementalBuild (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:120:19)
    at BroccoliTypeScriptCompiler.build (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:43:10)
    at C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\broccoli-caching-writer\index.js:152:21
    at lib$rsvp$$internal$$tryCatch (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
    at lib$rsvp$$internal$$publish (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
    at lib$rsvp$asap$$flush (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

    The broccoli plugin was instantiated at:
    at BroccoliTypeScriptCompiler.Plugin (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\broccoli-plugin\index.js:10:31)
    at BroccoliTypeScriptCompiler.CachingWriter as constructor
    at BroccoliTypeScriptCompiler (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\broccoli-typescript.js:27:5)
    at Angular2App._getTsTree (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\angular2-app.js:331:18)
    at Angular2App._buildTree (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\angular2-app.js:124:23)
    at new Angular2App (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\lib\broccoli\angular2-app.js:53:23)
    at module.exports (C:\Users\Chandra\Desktop\angi\a2todos\angular-cli-build.js:10:10)
    at Class.module.exports.Task.extend.setupBroccoliBuilder (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:55:19)
    at Class.module.exports.Task.extend.init (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\angular-cli\lib\models\builder.js:89:10)
    at new Class (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\core-object\core-object.js:18:12)
    at Class.module.exports.Task.extend.run (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\angular-cli\lib\tasks\serve.js:15:19)
    at C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\angular-cli\lib\commands\serve.js:64:24
    at lib$rsvp$$internal$$tryCatch (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1036:16)
    at lib$rsvp$$internal$$invokeCallback (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1048:17)
    at lib$rsvp$$internal$$publish (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1019:11)
    at lib$rsvp$asap$$flush (C:\Users\Chandra\Desktop\angi\a2todos\node_modules\angular-cli\node_modules\rsvp\dist\rsvp.js:1198:9)

    `

  19. radonirinamaminiaina commented on Aug 10, 2016

    @radonirinamaminiaina

    If you comment some code in the todos.component.spec.ts, this error will disappear.
    Try to do it:

    /* let component = new TestComponent();
    expect(component).toBeTruthy() */
    

    I know that I will need it for unit test, and I don't know how to solve it.
    It's not a good solution.

    +1

  20. michaelcm commented on Aug 11, 2016

    @michaelcm

    Running into a similar issue with all spec files generated with angular-cli 1.0.0-beta.10 & Angular2 RC4 (or 5). For me 'ng serve' works fine, but 'ng build -prod' does not, and fails with:

    The Broccoli Plugin: [BroccoliTypeScriptCompiler] failed with:
    Error: Typescript found the following errors:
      S:/projects/fox1/ui/src/angular/web-application/tmp/broccoli_type_script_compiler-input_base_path-dQOJLOas.tmp/0/src/app/shared/component-outlet.directive.spec.ts (8, 21): Supplied parameters do not match any signature of call target.
    

    In the code, the keywords describe, it and expect are all underlined with message "Cannot find name 'describe'" for example.

    Renaming or removing the spec files fixes it, but it would be nice to be able to try out unit tests too. Any ideas would be appreciated. Thanks!

  21. victorazevedo commented on Dec 23, 2016

    @victorazevedo

    same problem on WINDOWS...RUN git bash as ADMINISTRATOR than problem solved

  22. LintonBlack commented on Jan 3, 2017

    @LintonBlack

    Great ! thanks @victorazevedo

    "RUN git bash as ADMINISTRATOR than problem solved"

  23. dok53 commented on Aug 17, 2017

    @dok53

    @TheOriginalJosh worked like a treat. Thanks :)

  24. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    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.

  25. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions