Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

ng2-material-dropdown results in undefined injector type #851

Closed
stevenkampen opened this issue Dec 2, 2016 · 3 comments
Closed

ng2-material-dropdown results in undefined injector type #851

stevenkampen opened this issue Dec 2, 2016 · 3 comments
Assignees
Labels

Comments

@stevenkampen
Copy link
Contributor

stevenkampen commented Dec 2, 2016

In this line of the ng2-material-dropdown component, the first injected dependency returns a type of undefined using reflect-metadata, which breaks Augury.

Some investigation is need to determine why this happens.

@souldreamer, this is your issue which you originally reported on #848.

68747470733a2f2f6431376f793176686e61783166372e636c6f756466726f6e742e6e65742f6974656d732f31733362324d30623150314233753256306e32302f496d616765253230323031362d31322d3032253230617425323031322e31372e3237253230414d2e706e673f763d3939386334323937

@souldreamer
Copy link

Refactoring the project to use a service instead of the forwardRefs makes it work with Augury, so it's definitely something to do with those. Here's a version that does this: https://github.com/souldreamer/ng2-material-dropdown

@stevenkampen
Copy link
Contributor Author

@souldreamer Ok, I guess it's a forwardRef specific thing, which I can test easily enough. Thanks for the context.

@Angelmmiguel
Copy link

Angelmmiguel commented Dec 21, 2016

I have the same problem with https://github.com/Gbuomprisco/ng2-material-select. However, the stack trace doesn't show anything related to the code of that component.

screen shot 2016-12-21 at 15 51 47

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants