FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Invalid value 500 for property fontWeight in XML · Issue #3175 · NativeScript/NativeScript · GitHub

Invalid value 500 for property fontWeight in XML #3175

Description

Did you verify this is a real problem by searching Stack Overflow

Yes.

Tell us about the problem

Using style.fontWeight="500" in XML crashes app.

Which platform(s) does your issue occur on?

Both.

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

┌──────────────────┬─────────────────┬────────────────┬──────────────────┐
│ Component        │ Current version │ Latest version │ Information      │
│ nativescript     │ 2.4.0           │ 2.4.0          │ Up to date       │
│ tns-core-modules │ 2.4.0           │ 2.4.0          │ Up to date       │
│ tns-android      │ 2.4.0           │ 2.4.1          │ Update available │
│ tns-ios          │ 2.4.0           │ 2.4.0          │ Up to date       │
└──────────────────┴─────────────────┴────────────────┴──────────────────┘

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

Create a new blank project and put style.fontWeight="500" anywhere in your XML.

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

<Label text="y u crash? :(" style.fontWeight="500" />

Error

JavaScript error:
file:///app/tns_modules/ui/builder/builder.js:250:56: JS ERROR Error: Building UI from XML. @file:///app/routes/convo/convo.xml:116:29
 ↳Invalid value 500 for property fontWeight

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL