Closed Bug 1477951 Opened 6 years ago Closed 6 years ago

Angular 6 error messages never show right in Firefox Nightly

Categories

(DevTools :: Console, defect)

63 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1476605

People

(Reporter: u615764, Unassigned)

References

()

Details

(Keywords: parity-ie, testcase)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
Build ID: 20180723220051

Steps to reproduce:

1. Go to the website made by Angular 6 for example: https://firefox-test-82b74.firebaseapp.com/

2. When finishing loading, click "Enter"

3. Press F12 to open developer tools

4. Go to Console tab


Actual results:

Errors always show up like this:

ERROR Invalid object main.js:100942:103
ERROR CONTEXT 
Object { view: {…}, nodeIndex: 1, nodeDef: {…}, elDef: {…}, elView: {…} }
main.js:100942:103
ERROR Invalid object main.js:100942:103
ERROR CONTEXT 
Object { view: {…}, nodeIndex: 1, nodeDef: {…}, elDef: {…}, elView: {…} }
main.js:100942:103
ERROR Invalid object main.js:100942:103
ERROR CONTEXT 
Object { view: {…}, nodeIndex: 1, nodeDef: {…}, elDef: {…}, elView: {…} }
main.js:100942:103 


Expected results:

The following error messages should show up like in other browsers (even IE11).

main.js:100942 ERROR TypeError: Cannot read property 'length' of undefined
    at JournalComponent.push../src/app/components/journal/journal.component.ts.JournalComponent.get_bg_value (main.js:101088)
    at Object.updateDirectives (main.js:100942)
    at Object.debugUpdateDirectives [as updateDirectives] (main.js:22435)
    at checkAndUpdateView (main.js:21832)
    at callViewAction (main.js:22073)
    at execEmbeddedViewsAction (main.js:22036)
    at checkAndUpdateView (main.js:21833)
    at callViewAction (main.js:22073)
    at execEmbeddedViewsAction (main.js:22036)
    at checkAndUpdateView (main.js:21833)
Has STR: --- → yes
Component: Untriaged → Console
Keywords: parity-ie, testcase
Product: Firefox → DevTools
Thanks a lot for the test app !
In Firefox Nightly, the app doesn't load at all, I see the following message: 

Unhandled Promise rejection: The operation failed for reasons unrelated to the database itself and not covered by any other error code. ; Zone: <root> ; Task: Promise.then ; Value: DOMException: "The operation failed for reasons unrelated to the database itself and not covered by any other error code."  polyfills.js:2987:17
	./node_modules/zone.js/dist/zone.js/</</api.onUnhandledError https://firefox-test-82b74.firebaseapp.com/polyfills.js:2987:17
	handleUnhandledRejection https://firefox-test-82b74.firebaseapp.com/polyfills.js:3014:9
	_loop_1 https://firefox-test-82b74.firebaseapp.com/polyfills.js:3004:21
	./node_modules/zone.js/dist/zone.js/</</api.microtaskDrainDone https://firefox-test-82b74.firebaseapp.com/polyfills.js:3008:17
	drainMicroTaskQueue https://firefox-test-82b74.firebaseapp.com/polyfills.js:2924:13
	./node_modules/zone.js/dist/zone.js/</ZoneTask.invokeTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2822:21
	invokeTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:3862:9
	globalZoneAwareCallback https://firefox-test-82b74.firebaseapp.com/polyfills.js:3888:17
	(Async: EventListener.handleEvent)
	customScheduleGlobal https://firefox-test-82b74.firebaseapp.com/polyfills.js:3988:20
	./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.scheduleTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2729:21
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.scheduleTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2554:24
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.scheduleEventTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2580:20
	makeAddListener/< https://firefox-test-82b74.firebaseapp.com/polyfills.js:4153:28
	patchProperty/desc.set https://firefox-test-82b74.firebaseapp.com/polyfills.js:3566:13
	./node_modules/@firebase/firestore/dist/index.cjs.js/SimpleDb.openOrCreate/< https://firefox-test-82b74.firebaseapp.com/main.js:62195:13
	PersistencePromise https://firefox-test-82b74.firebaseapp.com/main.js:60132:9
	./node_modules/@firebase/firestore/dist/index.cjs.js/SimpleDb.openOrCreate https://firefox-test-82b74.firebaseapp.com/main.js:62180:16
	./node_modules/@firebase/firestore/dist/index.cjs.js/IndexedDbPersistence.prototype.start https://firefox-test-82b74.firebaseapp.com/main.js:63476:16
	./node_modules/@firebase/firestore/dist/index.cjs.js/FirestoreClient.prototype.startIndexedDbPersistence https://firefox-test-82b74.firebaseapp.com/main.js:67340:16
	./node_modules/@firebase/firestore/dist/index.cjs.js/FirestoreClient.prototype.initializePersistence https://firefox-test-82b74.firebaseapp.com/main.js:67278:20
	./node_modules/@firebase/firestore/dist/index.cjs.js/FirestoreClient.prototype.start/< https://firefox-test-82b74.firebaseapp.com/main.js:67232:17
	FirebaseCredentialsProvider/this.tokenListener https://firefox-test-82b74.firebaseapp.com/main.js:67648:21
	addAuthTokenListener/< https://firefox-test-82b74.firebaseapp.com/main.js:36400:49
	./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invokeTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2743:17
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.runTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2510:28
	./node_modules/zone.js/dist/zone.js/</ZoneTask.invokeTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2818:24
	ZoneTask/this.invoke https://firefox-test-82b74.firebaseapp.com/polyfills.js:2807:28
	timer https://firefox-test-82b74.firebaseapp.com/polyfills.js:4376:17
	(Async: setTimeout handler)
	scheduleTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:4397:25
	./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.scheduleTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2729:21
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.scheduleTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2554:24
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.scheduleMacroTask https://firefox-test-82b74.firebaseapp.com/polyfills.js:2577:20
	scheduleMacroTaskWithCurrentZone https://firefox-test-82b74.firebaseapp.com/polyfills.js:3436:12
	patchTimer/setNative</< https://firefox-test-82b74.firebaseapp.com/polyfills.js:4412:28
	patchMethod/proto[name] https://firefox-test-82b74.firebaseapp.com/polyfills.js:3716:24
	addAuthTokenListener https://firefox-test-82b74.firebaseapp.com/main.js:36400:17
	FirebaseCredentialsProvider https://firefox-test-82b74.firebaseapp.com/main.js:67654:9
	Firestore https://firefox-test-82b74.firebaseapp.com/main.js:68580:34
	configureForFirebase/< https://firefox-test-82b74.firebaseapp.com/main.js:69912:79
	./node_modules/@firebase/app/dist/index.cjs.js/FirebaseAppImpl.prototype._getService https://firefox-test-82b74.firebaseapp.com/main.js:36486:27
	registerService/FirebaseAppImpl.prototype[name] https://firefox-test-82b74.firebaseapp.com/main.js:36675:20
	AngularFirestore/this.firestore< https://firefox-test-82b74.firebaseapp.com/main.js:86485:29
	./node_modules/zone.js/dist/zone.js/</ZoneDelegate.prototype.invoke https://firefox-test-82b74.firebaseapp.com/polyfills.js:2710:17
	./node_modules/zone.js/dist/zone.js/</Zone.prototype.run https://firefox-test-82b74.firebaseapp.com/polyfills.js:2460:24
	./node_modules/@angular/core/fesm5/core.js/NgZone.prototype.runOutsideAngular https://firefox-test-82b74.firebaseapp.com/main.js:15308:16
	AngularFirestore https://firefox-test-82b74.firebaseapp.com/main.js:86483:26
	_createClass https://firefox-test-82b74.firebaseapp.com/main.js:19805:20
	_createProviderInstance https://firefox-test-82b74.firebaseapp.com/main.js:19767:26
	resolveNgModuleDep https://firefox-test-82b74.firebaseapp.com/main.js:19730:21
	_createClass https://firefox-test-82b74.firebaseapp.com/main.js:19799:29
	_createProviderInstance https://firefox-test-82b74.firebaseapp.com/main.js:19767:26
	resolveNgModuleDep https://firefox-test-82b74.firebaseapp.com/main.js:19730:21
	./node_modules/@angular/core/fesm5/core.js/NgModuleRef_.prototype.get https://firefox-test-82b74.firebaseapp.com/main.js:20438:16
	resolveDep https://firefox-test-82b74.firebaseapp.com/main.js:20803:12
	createClass https://firefox-test-82b74.firebaseapp.com/main.js:20683:32


Also, I don't see the messages you are seeing.
Did the app changed since you filed the issue ?
In DevEdition, I do see a similar message than the one you are experiencing: 

TypeError: "this.switch is undefined"
  get_bg_valuehttps://firefox-test-82b74.firebaseapp.com/main.js:101088:1
  View_JournalComponent_3 https://firefox-test-82b74.firebaseapp.com/main.js:100942:813
  debugUpdateDirectives https://firefox-test-82b74.firebaseapp.com/main.js:22435:12
I can confirm seeing `TypeError: "this.switch is undefined"` in Nightly, which is just a different phrasing to what Chrome shows. Can you confirm that the issue shows up in a fresh profile?
Created a fresh profile but everything stays the same. Here's the screenshot:

https://imgur.com/ubGT1UX.jpg

Is it just me that can't see the messages?
Switched to another laptop and still can't see the error messages
Update:
It works in Safe Mode. But not in Normal Mode with all extensions and plugins disabled. Also works in DevEdition
Hi, I think Bug 1476605 may be a duplicate after this one and please check the link from Comment 3 as it may help you reproduce this issue more easily.
Yes, I think this is a duplicate of Bug 1476605 as well.
Thanks togekk for the screenshot !
This should be fixed soon in Nightly, and we'll also try to uplift the fix to beta and release
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
It works now! Thanks!
You need to log in before you can comment on or make changes to this bug.