On Figma UI, it’s easy to set a hyperlink to an instance node by right click “Copy/Paste as“ > “Copy link“. However, I got an error when doing the same thing through plugin API.
Is there any solution or workaround?
I’ve tried to copy a text with links inside from one TextNode to another.
Though getRangeHyperlink gives a range split, setRangeHyperlink throws exactly the same error “Invalid hyperlink node reference. Hyperlink target node must be a page or a frame” in case the source link type is “NODE”. In case link type is “URL” no error appears.
This is also a problem for links to Sections. It is quickly becoming a major reason why I’m hesitant to switch my organizing structure in Figma from frames to sections.