nativescript-community / ui-label

Alternative to the built-in NativeScript Label but with better performance and additional features such as HTML rendering and more.
Apache License 2.0
19 stars 7 forks source link

Undefined is not an object (this.style.fontInternal.fontFamily) #6

Closed seergiue closed 4 years ago

seergiue commented 4 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Please, tell us how to recreate the issue in as much detail as possible.

I'm using nativescript-vue and I've been using this plugin for some months now without any issue. Today I decided to update tns (I was on 6.5.X) and both platforms and when I display HtmlLabel with some HTML (like a paragraph to test an easy HTML code) it breaks saying the following: TypeError: undefined is not an object (evaluating 'this.style.fontInternal.fontFamily')

farfromrefug commented 4 years ago

So not sure about the latest version I published there. The thing is now the plugin lives at @nativescript-community/ui-label. So.if you are at latest and it still fails, either:

seergiue commented 4 years ago

Thanks for the info @farfromrefug but unfortunately (and as expected) the new @nativescript-community/ui-label is not working.

I finally solved it by rolling back to v1.0.28 (working version).