This doesn’t seem to be happening to anyone else. If I leave the line in, the plugin fails with the same error. The function is recognized when I use it in the Scripter plugin.
Could something be wrong with my plugin configuration files? Maybe I’m using an older version of the Figma API somehow?