Steps to reproduce :
- Create a simple Figma plugin that listens to the "documentchange"event and logs the changes.
- Create a Figma node using figma.createNodeFromSvg().
- Delete the created node (using “node.remove()”) and recreate it
- Press Undo (Cmd+Z/Ctrl+Z).
- Observe the console: the "documentchange"event no longer triggers after the undo action. + Error is logged (Internal Figma error: Unknown node type for node in getPublicNodeType)
