Figma Support Forum

Can't set hyperlink to page node with plugin

Within the UI its quite simple to copy a link to a page within a file, and add it as a hypertext link to any text. But when trying to do so with the plugin APIs, I get an error that it must be a frame node.

Why is there this inconsistency?

Example below of a text node that’s set to a page node via the UI. Trying to link to the same page with the API fails