stevepapa / angular2-autosize

angular2-autosize is an Angular2 directive that automatically adjusts textarea height to fit content.
MIT License
118 stars 29 forks source link

(node:2168) UnhandledPromiseRejectionWarning: Unhandled promise rejection #19

Closed snstarosciak closed 7 years ago

snstarosciak commented 7 years ago

Hey there, I noticed when I install this via npm and include it into my @NgModule code, like you outlined in the documentation, I'm getting this error:

(node:2168) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'content' of null in my console.

Do you have any idea what might be causing it?

I'm actually using this project inside of an Ionic 2 app and I'm using Angular version 2.2.1 and Ionic version 2.0.0.

snstarosciak commented 7 years ago

So I figured this out. I needed to update my ionic app-scripts to 1.0.0, typescript to 2.2.1, and my various typings for modules and the problem resolved itself.