Skip to content

Builder shows warnings: Invalid prop: type check failed for prop "modelValue". Expected String, got Number #115

@mhsmith

Description

@mhsmith

In the builder, warnings like this appear every time you select a widget that has an IntegerProperty. They appear to be harmless, but they flood the console and make debugging more difficult.

For example, on a Slider:

builder-model.ts:236 [Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected String with value "0", got Number with value 0. 
  at <IbInput key=4 label="minvalue" type="text"  ... > 
  at <IbHStack key="minvalue" is-full-width="" spacing=4  ... > 
  at <IbVStack key=0 spacing=4 > 
  at <BuilderDesktopLayout> 
  at <Builder> 
  at <App>

On a Page:

builder-model.ts:236 [Vue warn]: Invalid prop: type check failed for prop "modelValue". Expected String with value "100", got Number with value 100. 
  at <IbInput key=4 label="column_width" type="text"  ... > 
  at <IbHStack key="column_width" is-full-width="" spacing=4  ... > 
  at <IbVStack key=0 spacing=4 > 
  at <BuilderDesktopLayout> 
  at <Builder> 
  at <App>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuilder

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions