You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Subsequent variable declarations error on typings.d.ts #5499
@filipesilva which package do you use on VS Code ? That way I can test if the proposed solution works on it.
Also is there a specific reason you feel #5500 isn't working or is not the correct implementation ? It seems to be working on my editor and passing the test for #5193 along with the others so far.
Yeah ... Updated comment when I realized "plugin" meant package ... Overall I realized I was having same error as you on Atom when I tested the tested the fix on it .. I was being too reliant on the CLI tests. I updated the PR so it doesn't use module: any; but rather extends NodeModule .. So far is working on both editors, and hopefully passes all tests.
You know what, I think that's the right solution. I hadn't thought about how declaration merging would kick in and make this whole work. Great job fixing this!
No problem ! xD .. Thanks for the VS Code screenshot btw, I hadn't realize the first solution that actually passed all tests wasn't working even on my own text editor until you showed me that ~ lol
Activity
filipesilva commentedon Mar 18, 2017
I can verify this also happens in VS Code.
This happens because the editor tsconfig does include node typings, so when the editor reads
typings.d.tsthere's an error.ng builduses a tsconfig without node typings so it's fine.The approaches that you're trying in #5500 aren't going to work though... this probably needs a more sophisticated solution.
dave11mj commentedon Mar 18, 2017
@filipesilva which package do you use on VS Code ? That way I can test if the proposed solution works on it.
Also is there a specific reason you feel #5500 isn't working or is not the correct implementation ? It seems to be working on my editor and passing the test for #5193 along with the others so far.
filipesilva commentedon Mar 18, 2017
VS Code does not need any plugin, it should work with TS out of the box.
This is what I see there with your solution:

dave11mj commentedon Mar 18, 2017
Cool !! What package is that ? I wanted to test on VS Code but didn't know which package is similar to TypeStrongEdit:
Dump question .. just realize you said "no plugins"
filipesilva commentedon Mar 18, 2017
No package needed, just a vanilla install of VS Code 😄
dave11mj commentedon Mar 18, 2017
Yeah ... Updated comment when I realized "plugin" meant package ... Overall I realized I was having same error as you on Atom when I tested the tested the fix on it .. I was being too reliant on the CLI tests. I updated the PR so it doesn't use
module: any;but rather extendsNodeModule.. So far is working on both editors, and hopefully passes all tests.filipesilva commentedon Mar 18, 2017
You know what, I think that's the right solution. I hadn't thought about how declaration merging would kick in and make this whole work. Great job fixing this!
dave11mj commentedon Mar 18, 2017
No problem ! xD .. Thanks for the VS Code screenshot btw, I hadn't realize the first solution that actually passed all tests wasn't working even on my own text editor until you showed me that ~ lol
angular-automatic-lock-bot commentedon Sep 6, 2019
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.