Robin Kedia
Robin Kedia

Reputation: 283

Angular 2 RC4 New Router Warning Message

I see this warning message on the console. I'm using the new angular 2 router. What am I missing or I have to do to fix this warning?

'DashboardComponent' not found in precompile array.
To ensure all components referred to by the RouterConfig are compiled, you must add 'DashboardComponent' to the 'precompile' array of your application component.
This will be required in a future release of the router.

Upvotes: 2

Views: 1407

Answers (1)

Keifer Caebe
Keifer Caebe

Reputation: 617

Upgrading to router 3 beta 2 removed the warning for me

Upvotes: 10

Related Questions