I have built a simple plugin for my organization to generate our best practice Figma file boilerplate. I would love to be able to take advantage of the new page dividers feature, but if I use the API to edit the name of the page to something like ‘—’ it doesn’t turn into a divider like it would from the UI.
Feature requests
Add ability to create dividers — Figma.createDivider()?
Turn pages to divider if name is changed to “—” or similar like in UI
@Andrey_Cretsu I don’t mean to sound rude, but if your code doesn’t still work, I suggest you google the error The problem is written in the end of that error message and solution is quite literally the first google result. Just add latest ECMAScript to your tsconfig.json and you’re good.