Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 RC4 New Router Warning Message

Tags:

angular

router

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.
like image 657
Robin Kedia Avatar asked Mar 13 '26 19:03

Robin Kedia


1 Answers

Upgrading to router 3 beta 2 removed the warning for me

like image 97
Keifer Caebe Avatar answered Mar 15 '26 09:03

Keifer Caebe



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!