Why we cannot create a page section with the configuration of two columns with the first one filling the 2 of the 12 column of the layout and the second column filling 10 of the 12 column of layout.
When I use the code bellow:
const page = await ClientsidePageFromFile(sp.web.getFileByServerRelativeUrl("/sites/" + b[1] + "/SitePages/Home1.aspx"));
let section = page.addSection();
let leftColumn = section.addColumn(2);
let rightColumn = section.addColumn(10);
I get the message error:
Argument of type '10' is not assignable to parameter of type 'CanvasColumnFactor'