Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

project failed to run when Visual Studio 2015 publish project to bin\Release\PublishedOutput #279

Closed

Description

@nklt

All sample applications as well as SPA template failed to compile and run, once Visual Studio builds and publish the application to bin\Release\PublishedOutput location within the project space.

This cause the Visual Studio .net core compile, and as well as dotnet tools, to give an erroneous error on typescript file.

Duplicate identifier 'export='.

This error appeared in all typescript source file, such the require.d.ts and tsd.d.ts in Angular2SPA template.

Once the PublishedOutput is removed, the error disappear.

Activity

  1. SteveSandersonMS commented on Sep 1, 2016

    @SteveSandersonMS
    Member

    Thanks for reporting this.

    TypeScript doesn't like it if it can see duplicate copies of definitions. You can solve this problem by adding bin to the list of excluded directories in tsconfig.json.

    I've just applied this fix to the source, i.e.: 09e1cd3

  2. nklt commented on Sep 1, 2016

    @nklt
    Author

    Adding excluded bin directory fixed the first error, but introduced the next error in Typescript.

    Severity Code Description Project File Line Suppression State
    Error TS2664 Invalid module name in augmentation, module '../../Observable' cannot be found. TypeScript Virtual Projects C:\workspace6\Angular2Spa\node_modules\rxjs\add\observable\combineLatest.d.ts 2 Active

    This error is seen on every typescript file in the project.

    It appear the TSC cannot comletely ignore the bin folder for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions