Error enabling routeTracing in the angular 2 template #1138

Closed
opened 2025-08-09 17:19:01 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @lucamorelli on 1/5/2017

Hi,
often happens that if I add routeTracing

RouterModule.forRoot([
    { path: '', redirectTo: 'home', pathMatch: 'full' },
    { path: 'home', component: HomeComponent },
...
  ], { enableTracing: true }),

I obtain this error message

Exception: Call to Node module failed with error: TypeError: console.group is not a function
at SafeSubscriber._next (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:59646:26)

The strange thing is that at first worked: I added this in the appmodule, recompiled and restarted and worked showing the data in the console but nowe, after a restart of vs, I recompile, start the app and obtain this error message

*Originally created by @lucamorelli on 1/5/2017* Hi, often happens that if I add routeTracing ``` RouterModule.forRoot([ { path: '', redirectTo: 'home', pathMatch: 'full' }, { path: 'home', component: HomeComponent }, ... ], { enableTracing: true }), ``` I obtain this error message ``` Exception: Call to Node module failed with error: TypeError: console.group is not a function at SafeSubscriber._next (D:\Sorgenti\Interno\MyCrm\src\CrmApp\ClientApp\dist\vendor.js:59646:26) ``` The strange thing is that at first worked: I added this in the appmodule, recompiled and restarted and worked showing the data in the console but nowe, after a restart of vs, I recompile, start the app and obtain this error message
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1138
No description provided.