Skip to content

"enableTracing: true" leads to an exception in @angular/router #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dvabuzyarov opened this issue Jan 30, 2017 · 4 comments
Closed

"enableTracing: true" leads to an exception in @angular/router #650

dvabuzyarov opened this issue Jan 30, 2017 · 4 comments
Assignees

Comments

@dvabuzyarov
Copy link

dvabuzyarov commented Jan 30, 2017

This bug is reproducible with sample-Groceries (SHA a3a34318429e2bfe99420c65d6b77f5095618064).
You need to enable routing trace.

NativeScriptRouterModule.forRoot(appRoutes, {enableTracing: true}). 

This will lead to core.umd.js:3491:32: EXCEPTION: null is not an object (evaluating 'dom_1.logGroup').

nativescript-anular : 1.3.0
"@angular/router": 3.3.1

@NickIliev
Copy link

NickIliev commented Jan 30, 2017

Reproduced with Android and angular-end branch.

Just pass enableTracing for the optional ExtraOptions and it will crash with the following error:

JS:     at Subscriber._next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:125:26)
JS:     at Subscriber.next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:89:18)
JS:     at Subject.next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subject.js:55:25)
JS:     at Router.executeScheduledNavigation (/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/router/bundles/router.umd.js:3620:33)
JS:     at MergeMapSubscriber.project (/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/router/bundles/router.umd.js:3580:25)
JS:     at MergeMapSubscriber._tryNext (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/operator/mergeMap.js:111:27)
JS:     at MergeMapSubscriber._next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/operator/mergeMap.js:101:18)
JS: ns-renderer: ERROR BOOTSTRAPPING ANGULAR
JS: ns-renderer: Cannot read property 'logGroup' of null
JS:
JS: TypeError: Cannot read property 'logGroup' of null
JS:     at SafeSubscriber._next (/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/router/bundles/router.umd.js:5355:20)
JS:     at SafeSubscriber.__tryOrUnsub (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:223:16)
JS:     at SafeSubscriber.next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:172:22)
JS:     at Subscriber._next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:125:26)
JS:     at Subscriber.next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subscriber.js:89:18)
JS:     at Subject.next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/Subject.js:55:25)
JS:     at Router.executeScheduledNavigation (/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/router/bundles/router.umd.js:3620:33)
JS:     at MergeMapSubscriber.project (/data/data/org.nativescript.groceries/files/app/tns_modules/@angular/router/bundles/router.umd.js:3580:25)
JS:     at MergeMapSubscriber._tryNext (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/operator/mergeMap.js:111:27)
JS:     at MergeMapSubscriber._next (/data/data/org.nativescript.groceries/files/app/tns_modules/rxjs/operator/mergeMap.js:101:18)

@hdeshev
Copy link
Contributor

hdeshev commented Feb 8, 2017

Fixed in master (#660)

@hdeshev hdeshev closed this as completed Feb 8, 2017
@hdrdiab
Copy link

hdrdiab commented Dec 23, 2017

Is it normal for this error to appear only when running a bundled version of the app?

@elena-p
Copy link
Contributor

elena-p commented May 14, 2019

the fix is in both release and master branches

@elena-p elena-p closed this as completed May 14, 2019
@ghost ghost removed bug in progress labels May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants