How to fix Angular Can't bind to 'routerLink' since it isn't a known property of

If you see an error message such as

in your angular app, open the module file that is declaring your component(typically app.module.ts) and add

to its imports, for example:


Check out similar posts by category: Angular