Creator Kit - Library Control Errors
11 March 2023

Creator Kit - Library Control Errors

Technical article about Creator Kit - Library Control Errors

app-canvas applications-style business-app canvas-app creator-kit-update errors fix-error library-component-errors look-feel news panel-control power-apps
1 min read

At the time of writing this article, when you add Library Component of Creator Kit, you may find some errors. If you don’t know what Creator Kit is, you can read my article here.

Add control to your App

Add one of Library control to your app. If you didn’t have installed Creator Kit in your environment, you can read this article to do it.

Import component

Add Panel Component

Component

Add Control To App

Let’s see how to use this control.

Errors

As you can see, now you have 10 errors on your app. All errors are relative to our Panel Control:

Errors

Our control should look like this:

Error panel in your app

Panel

How to fix it

To fix, you should follow these step:

  • Create a local copy of your control

  • Fix errors

  • Use copied control

Let’s start to create local copy. Click on Edit and then Create Copy:

Edit component

Create copy

Now you have local copy and you can fix errors:

Error panel

Control to fix

In this case (But the errors will change depending on the control you have), I fixed:

Button:

If(ThisItem.ButtonType = Primary, ColorValue(Panel_2.Theme.palette.themePrimary))

To

If(ThisItem.ButtonType = 'Microsoft.CoreControls.Button.ButtonType'.Standard, ColorValue(Panel_2.Theme.palette.themeDark))

Font:

'Segoe UI'

To

Font.'Segoe UI'
Semibold

To

FontWeight.Semibold
Transparent
Color.Transparent

Now your control should work. You should see like this:

Fixex Panel

Panel Control Fixel

We can use our version of control:

Local components

Considerations

I hope these information can help you…Here you can find official documentations on GitHub for this control.

Contact me for questions! Have a nice day!