Skip to content
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

Uncaught TypeError: Reflect.getMetadata is not a function #1238

Closed
apulgupta opened this issue Dec 5, 2016 · 4 comments
Closed

Uncaught TypeError: Reflect.getMetadata is not a function #1238

apulgupta opened this issue Dec 5, 2016 · 4 comments

Comments

@apulgupta
Copy link

I was writing unit test cases to test a simple service but while running test case, I am getting following error:

Uncaught TypeError: Reflect.getMetadata is not a function

Please suggest something to fix it.

@alanhe421
Copy link

i faced same error

@apulgupta
Copy link
Author

I solved this issue by adding import 'reflect-metadata' on the top of my test specifications code file.

@leolanese
Copy link

that works for me too.

@kaitlynekdahl
Copy link

Worked for me too, but can anyone explain why this is needed? I ran into this issue trying to incorporate preboot with Angular Universal, so I'm not sure why the problem occurred in the first place.

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

No branches or pull requests

5 participants