Angular2 generator does not install typings ? #1311

Closed
opened 2025-08-09 17:19:39 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @tebeco on 10/16/2016

Hi, i'm new to front dev but from what I can read here :
https://angular.io/docs/ts/latest/quickstart.html

Should the angular2 template reference typings in packages.json ?
It seems to cause issue to Vs2015.3
For example : require from Node is marked in red (eg : require('somefile.html') )
The mouseOver seem to understand that it comes from node but nothing more

It may comes from R# too but still i'm looking to fix squiggle as possible ;)

i've try to add Typing to my solution by adding the following line to packages.json :

"scripts": {
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"dependencies": {
"typings": "^1.4.0",
}

But now it tries to cast everything as "Any" , rofl
Any idea ?

*Originally created by @tebeco on 10/16/2016* Hi, i'm new to front dev but from what I can read here : https://angular.io/docs/ts/latest/quickstart.html Should the angular2 template reference typings in packages.json ? It seems to cause issue to Vs2015.3 For example : require from Node is marked in red (eg : require('somefile.html') ) The mouseOver seem to understand that it comes from node but nothing more It may comes from R# too but still i'm looking to fix squiggle as possible ;) i've try to add Typing to my solution by adding the following line to packages.json : "scripts": { "postinstall": "typings install", "tsc": "tsc", "tsc:w": "tsc -w", "typings": "typings" }, "dependencies": { "typings": "^1.4.0", } But now it tries to cast everything as "Any" , rofl Any idea ?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1311
No description provided.