sharepoint online – Argument of type ’10’ is not assignable to parameter of type ‘CanvasColumnFactor’

As per SharePoint/PnP-JS-Core library, CanvasColumnFactorType is defined as:

/**
 * Column size factor. Max value is 12 (= one column), other options are 8,6,4 or 0
 */
export type CanvasColumnFactorType = 0 | 2 | 4 | 6 | 8 | 12;

So, you cannot pass 10 value to parameter of type CanvasColumnFactor. You have to use one of the above values.


Additional:

Note that the total value of CanvasColumnFactorType in one section should be 12. Otherwise, you can not edit the created section on the web page.

Source: spfx-add-news-button-webpart