Angular 2 and VS code debugging issue: Reflect-Metadata

I am working on simple projects for training. Now I'm reading about VS Code Debug, but when I try to debug an Angular 2 project, it always stops here:

(function checkReflect() { if (!(Reflect && Reflect.getMetadata)) { throw 'reflect-metadata shim is required when using class decorators'; } })(); 

I tried the Starter Project and CLI projects. Always come back here. But all projects work well in the browser without errors. Sounds like an IDE issue.

+5
source share
2 answers

The best way to debug your javascript code is to debug it in a browser debugger. All IDEs have their own debugger tool and do not have uniformity.

0
source

This means that you do not have the following dependencies installed in your project:

npm install reflect-metadata crypto --save

0
source

All Articles