Reflect.getMetadata is not a function

See original GitHub issue

So i have update to the latest RC7 of angular2 and now im getting this error :

Reflect.getMetadata is not a function

What can I do to fix this issue, I’m using the 0.1.2 version. (Also tried with the latest 0.1.8)

Thanks in advance!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:6

github_iconTop GitHub Comments

4reactions
schtauffencommented, Apr 25, 2019

I ran into this problem inside a lib. I resolved it by following @bashleigh’s example and installing the types,

npm i --save @types/reflect-metadata

But also had to add an entry within tsconfig.lib.json:

{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    ...
    "types": [
      "reflect-metadata"
    ]
  }
}
4reactions
bashleighcommented, Jul 5, 2018

I added the reflect-metadata types and that resolved my problem yarn add --dev @types/reflect-metadata

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Reflect.getMetadata is not a function · Issue #52
It works only if I move the import 'reflect-metadata' to the actual class that is being serialized. Is that expected behavior?
Read more >
TypeError: Reflect.getMetadata is not a function - Stack Overflow
My issue was I had import * as reflect from 'reflect-metadata'; . I needed just import 'reflect-metadata'; . – josephdpurcell. Jul 14 at...
Read more >
Reflect.metadata is not a function - APM - Elastic Discuss
Hi Team,. I am Using angular 9 Version CLI and Angular Version 9 and when i try to implement the syntax as per...
Read more >
Uncaught TypeError: Reflect.getMetadata is not a function
Hello there,. I am trying to deploy my app in the store but i am facing an error with this command: ionic cordova...
Read more >
Reflect.getMetadata is not a function When using Node.JS ...
[Solved]-TypeError: Reflect.getMetadata is not a function When using Node.JS routing-controller-node.js · Related Query · More Query from same tag · Contact Us.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found