It seems like you should get that error, too, if you are not using --prod.
Please use ionic serve and open the console. Then navigate to the page where you are using:
<avartar [ERROR ->][user]="fs.user"></avartar>
You should see the same error in your console then. If you do, the error is in the way you use your custom component.