Angular2 reflect-metadata shim is required when using class decorators
In fact the import 'reflect-metadata';
have to be added on my server.ts file as I want to use server rendering. After adding it. No more errors.
This error is because, just like directive, your component HTML should be enclosed in a div.
<div>
//html
</div>
I got the same issue. When I enclose the HTML inside the div, it's working fine.