components icon indicating copy to clipboard operation
components copied to clipboard

IE11 - Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument.

Open manish-jain-1 opened this issue 9 years ago • 9 comments

I am getting below error with rel11 on IE11. This works fine on Chrome 54.

Error: Uncaught (in promise): Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. at DebugAppView.prototype._rethrowWithContext (eval code:9465:21) at DebugAppView.prototype.detectChanges (eval code:9451:17) at ViewContainer.prototype.detectChangesInNestedViews (eval code:9520:21) at View_MdInput0.prototype.detectChangesInternal (Function code:169:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent0.prototype.detectChangesInternal (Function code:1734:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent_Host0.prototype.detectChangesInternal (Function code:27:3) { [functions]: , proto: { }, description: "Uncaught (in promise): Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. at DebugAppView.prototype._rethrowWithContext (eval code:9465:21) at DebugAppView.prototype.detectChanges (eval code:9451:17) at ViewContainer.prototype.detectChangesInNestedViews (eval code:9520:21) at View_MdInput0.prototype.detectChangesInternal (Function code:169:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent0.prototype.detectChangesInternal (Function code:1734:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent_Host0.prototype.detectChangesInternal (Function code:27:3)", message: "Uncaught (in promise): Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. at DebugAppView.prototype._rethrowWithContext (eval code:9465:21) at DebugAppView.prototype.detectChanges (eval code:9451:17) at ViewContainer.prototype.detectChangesInNestedViews (eval code:9520:21) at View_MdInput0.prototype.detectChangesInternal (Function code:169:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent0.prototype.detectChangesInternal (Function code:1734:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent_Host0.prototype.detectChangesInternal (Function code:27:3)", name: "Error", promise: { }, rejection: { }, stack: "Error: Uncaught (in promise): Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. Error: Error in ./MdInput class MdInput - inline template:0:846 caused by: Invalid argument. at DebugAppView.prototype._rethrowWithContext (eval code:9465:21) at DebugAppView.prototype.detectChanges (eval code:9451:17) at ViewContainer.prototype.detectChangesInNestedViews (eval code:9520:21) at View_MdInput0.prototype.detectChangesInternal (Function code:169:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent0.prototype.detectChangesInternal (Function code:1734:3) at AppView.prototype.detectChanges (eval code:9355:13) at DebugAppView.prototype.detectChanges (eval code:9448:17) at View_MlsComponent_Host0.prototype.detectChangesInternal (Function code:27:3) at l (http://localhost/vendor/zone.js/dist/zone.min.js?version=3064fd0e71585166bccc703c33ba93ee:1:9608) at l (http", Symbol(rxSubscriber)_m.f9cwm0cqdzw: undefined, task: { }, zone: { } }

"@angular/common": "2.2.4", "@angular/compiler": "2.2.4", "@angular/core": "2.2.4", "@angular/forms": "2.2.4", "@angular/http": "2.2.4", "@angular/material": "^2.0.0-alpha.11-3", "@angular/platform-browser": "2.2.4", "@angular/platform-browser-dynamic": "2.2.4",

Let me know anything else is needed. Any ideas how to fix it?

Thanks, Manish

manish-jain-1 avatar Dec 14 '16 22:12 manish-jain-1

Can you post your HTML @ManishJainGitHubUser? Otherwise there's not way to find out what's wrong.

crisbeto avatar Dec 18 '16 11:12 crisbeto

@crisbeto I had this same error in IE when using type=date. Works in Chrome.

starksds avatar Dec 21 '16 12:12 starksds

Thanks @starksds, I managed to reproduce it. I'll see what I can do.

crisbeto avatar Dec 22 '16 07:12 crisbeto

This error seems to be only if you're using the md-input component, which is now deprecated. If you update to the latest Material version, you can use md-input-container which shouldn't throw.

crisbeto avatar Dec 23 '16 06:12 crisbeto

@crisbeto this is still broken in I.E. 11

starksds avatar Jan 05 '17 17:01 starksds

Are you using the md-input-container @starksds?

crisbeto avatar Jan 05 '17 17:01 crisbeto

@crisbeto yes

starksds avatar Jan 05 '17 23:01 starksds

@crisbeto ok, turns out we were still using md-input. sorry for the false alarm!

starksds avatar Jan 06 '17 14:01 starksds

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.