GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tsconfig.json does not work with VS 2015 · Issue #3124 · microsoft/TypeScript

tsconfig.json does not work with VS 2015 #3124

New issue
Copy link
New issue
Copy link
Closed
Closed
tsconfig.json does not work with VS 2015#3124
Copy link
Assignees
paulvanbrenk
Labels
CommittedThe team has roadmapped this issueThe team has roadmapped this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVisual StudioIntegration with Visual StudioIntegration with Visual Studio
Milestone
TypeScript 1.5.3

Description

@OnurGumus
Onur Gumus (OnurGumus)
opened on May 12, 2015
Issue body actions

I am trying to give options to typescript namely trying tell how to load modules from VS. For new ASP.NET 5 templates this option simply not available, worse typescript 1.5 does not honor tsconfig.json either so what should I do ?

Activity

Next
  1. CyrusNajmabadi commented on May 12, 2015

    @CyrusNajmabadi
    Cyrus Najmabadi (CyrusNajmabadi)
    on May 12, 2015
    Contributor
    More actions

    tsconfig.json files are not currently working in VS2015. It's something Paul van Brenk (@paulvanbrenk) is working on.

  2. OnurGumus commented on May 12, 2015

    @OnurGumus
    Onur Gumus (OnurGumus)
    on May 12, 2015
    Author
    More actions

    Any work around for the time being? I need to specify modules to AMD.

  3. paulvanbrenk commented on May 12, 2015

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on May 12, 2015
    Contributor
    More actions

    No guaranteed workaround, you can try adding a TypeScriptModuleKind element to a propertygroup, with amd or commonjs specified.. not sure if that gets correctly communicated to the compiler.

  4. Paul van Brenk (paulvanbrenk)
    added this to the This milestone has been deleted milestone on May 12, 2015
  5. Paul van Brenk (paulvanbrenk)
    added
    BugA bug in TypeScriptA bug in TypeScript
    on May 12, 2015
  6. Paul van Brenk (paulvanbrenk)
    self-assigned this
    on May 12, 2015
  7. OnurGumus commented on May 12, 2015

    @OnurGumus
    Onur Gumus (OnurGumus)
    on May 12, 2015
    Author
    More actions

    Thanks that seems to work.

  8. JohnFlyIII commented on May 17, 2015

    @JohnFlyIII
    John Fly (JohnFlyIII)
    on May 17, 2015
    More actions

    +1 for this to work in VS2015 RC without workarounds.
    I really enjoy the experience from VS Code

  9. paulvanbrenk commented on May 18, 2015

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on May 18, 2015
    Contributor
    More actions

    This will work in the final release of VS 2015.

  10. Paul van Brenk (paulvanbrenk)
    added
    Visual StudioIntegration with Visual StudioIntegration with Visual Studio
    on May 18, 2015
  11. Mohamed Hegazy (mhegazy)
    added
    SuggestionAn idea for TypeScriptAn idea for TypeScript
    CommittedThe team has roadmapped this issueThe team has roadmapped this issue
    and removed
    BugA bug in TypeScriptA bug in TypeScript
    on May 19, 2015
  12. mhegazy commented on May 19, 2015

    @mhegazy
    Mohamed Hegazy (mhegazy)
    on May 19, 2015
    Contributor
    More actions

    Updating the label to suggestion as this is not a bug level change; this does not change the plan of shipping this in the next public VS release.

  13. paulvanbrenk commented on May 20, 2015

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on May 20, 2015
    Contributor
    More actions

    Checked in the code to enable this scenario in VS 2015

  14. 14 remaining items

  15. alexandero-brd commented on Nov 4, 2015

    @alexandero-brd
    Alexander Orel (alexandero-brd)
    on Nov 4, 2015
    More actions

    I use latest (1.6.3 TypeScript language services), VS 2015 and ASP .Net Betta8. I have FrontendApp folder in the root of web project with tsconfig.json. It contains compiler options and links to files with TS definitions. I also use WebPack + ts-loader to build frontend application and it builds successfully.

    But Visual Studio code analyzer shows errors in the TypeScript files for imports of modules which are declared in the definition files. If I add references like

    /// <reference path="typings/tsd.d.ts" />
    

    then errors are disappearing. But all these files are already declared in the tsconfig.json so I don't want to have two sources of these files. What is even more interesting that I have several modules (external) and I added reference comments only to one of them (the main one). If I reopen project and open some other TypeScript file (not main) - Visual Studio shows errors. If I open main TS file after that and wait a few seconds then errors disappear (in all TS files). And after each project reopen I need to open main TS file and wait few seconds.

    Is it possible just to use files list with definitions from tsconfig.json without including reference comments?

  16. paulvanbrenk commented on Nov 4, 2015

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on Nov 4, 2015
    Contributor
    More actions

    @oryol Please see this wikipage about using tsconfig.json and ASP.NET 5. https://github.com/Microsoft/TypeScript/wiki/Using-TypeScript-With-ASP.NET-5

    I think the reason you're seeing what you're seeing is that we only check for tsconfig.json files in the scripts folder.

  17. alexandero-brd commented on Nov 4, 2015

    @alexandero-brd
    Alexander Orel (alexandero-brd)
    on Nov 4, 2015
    More actions

    So, is it possible to use tsconfig.json in other folders (not in "Scripts")? If not - are you going to support such scenarios and when can we expect such feature?

  18. paulvanbrenk commented on Nov 4, 2015

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on Nov 4, 2015
    Contributor
    More actions

    @oryol No, not in TypeScript 1.7 (or earlier). However I'm right now working on making the tsconfig.json support a lot better in VS 2015, you should see that in the 1.8 release.

    Caveat: Any features don't actually exist until they're checked-in/shipped, and schedules can change at a moments notice.

  19. alexandero-brd commented on Nov 4, 2015

    @alexandero-brd
    Alexander Orel (alexandero-brd)
    on Nov 4, 2015
    More actions

    Thank you for reply!

  20. defyjoy commented on Mar 6, 2016

    @defyjoy
    Joydeep Roychowdhury (defyjoy)
    on Mar 6, 2016
    More actions

    Does this still work for *.csproj files ? I opened a new blank asp.net application and tried to make it work with tsconfig.json .The project I chose in 2015 was

    image

    But it seems the VS completely ignores the tsconfig.json.

    image

    My project structure somewhat looks like this

    image

    Note : I am using typescript v1.8.2

  21. mhegazy commented on Mar 7, 2016

    @mhegazy
    Mohamed Hegazy (mhegazy)
    on Mar 7, 2016
    Contributor
    More actions

    Joydeep Roychowdhury (@defyjoy) can you try the latest (https://github.com/Microsoft/TypeScript/releases/tag/v1.8.7), and if you run into issues, please file a new issue and provide a project we can look at.

  22. paulvanbrenk commented on Mar 7, 2016

    @paulvanbrenk
    Paul van Brenk (paulvanbrenk)
    on Mar 7, 2016
    Contributor
    More actions

    Joydeep Roychowdhury (@defyjoy) Can you make sure TypeScript shows in Help > About

  23. dehghani-mehdi commented on Jan 18, 2017

    @dehghani-mehdi
    Mehdi Dehghani (dehghani-mehdi)
    on Jan 18, 2017
    More actions

    Doesn't work here, I'm using VS 2015.3 and latest version of TypeScript

  24. dazinator commented on Jan 18, 2017

    @dazinator
    Darrell (dazinator)
    on Jan 18, 2017
    More actions

    When using VS2015, put the tsconfig file in a "Scripts" folder. Otherwise I don't think VS will find it or honour it.

  25. dehghani-mehdi commented on Jan 18, 2017

    @dehghani-mehdi
    Mehdi Dehghani (dehghani-mehdi)
    on Jan 18, 2017
    More actions

    Darrell (@dazinator) that isn't really good way to deal with config file, I always rename Script folder to js, personally prefer to use commad-line to deal with this issue.

  26. dazinator commented on Jan 18, 2017

    @dazinator
    Darrell (dazinator)
    on Jan 18, 2017
    More actions

    Mehdi Dehghani (@dehghani-mehdi) - yep I know. I also think it's a poor, but that is how the VS project system (vs2015) supports typescript projects as far as I know. This should help Joydeep Roychowdhury (@defyjoy). If you want to handle typescript project compilation outside VS using tsc that will of course work.

  27. dazinator commented on Jan 18, 2017

    @dazinator
    Darrell (dazinator)
    on Jan 18, 2017
    More actions

    Also - if you do decide to use command line tsc to handle typescript project compilation, then you will want to disable VS from automatically transpiling ts files to js files (as it will to do that depending on your VS configuration settings for typescript language). To prevent VS from doing this in VS2015, add the following to your .csproj file:

    <TypeScriptCompileBlocked>true</TypeScriptCompileBlocked>
  28. dehghani-mehdi commented on Jan 19, 2017

    @dehghani-mehdi
    Mehdi Dehghani (dehghani-mehdi)
    on Jan 19, 2017
    More actions

    Darrell (@dazinator) Thanks for the note, for now I just add tsconfig.json to the project for disabling auto generate JS file by VS :), of course the correct solution is what you mentioned.

  29. microsoft
    locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @paulvanbrenk
    Paul van Brenk (paulvanbrenk)

Labels

CommittedThe team has roadmapped this issueThe team has roadmapped this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVisual StudioIntegration with Visual StudioIntegration with Visual Studio

Type

No type

Projects

No projects

    Milestone

    • TypeScript 1.5.3

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.