-
Notifications
You must be signed in to change notification settings - Fork 46
Does typings support work? #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The call to Recent changes to systemjs mean that you may need to use the fully resolved package name to get this working, e.g.
This is working in the angular2 example contained in this repository. |
Ok, sorry, I see it now. The api design got me confused. NB I'd say it's a rather poor design on SystemJS part - modify the passed in argument and at the same time return a promise and not pass the result to the continuation. Anyway, I still have a question about typings support. I actually was trying to get it working with Angular 1.4.6 installed with jspm and matching typings installed with typings tool. This means that the typings are in a completely different location than the package files. The readme says that instead of Feel free to close the issue. Thank you. |
I think that you don't need any metadata configuration if you are using typings and angular1, you just need to make sure that See my comment here about the two different kinds of typings files. Metadata is only required for external typings. |
@frankwallis Thanks for the explanation. Indeed, I will experiment with Thank you. |
I was looking at typings support which, according to the readme, is supposed to get configured from systemjs package configuration like this:
However I couldn't make it work and it made me look at the source code. Please correct me if I'm wrong, but as far as I understand the source code this package configuration is not used at all.
The typing lookup seems to be implemented in
resolver.ts
inResolver.lookupTyping
[1] which usesmetadata
returned fromthis._lookup
. This is implemented inplugin.ts
with_lookup
[2].This method always returns an empty metadata object and therefore
lookupTyping
always hits the "no typings" path.What's up with this?
[1]
plugin-typescript/src/resolver.ts
Line 118 in b48702e
[2]
plugin-typescript/src/plugin.ts
Line 138 in b48702e
The text was updated successfully, but these errors were encountered: