I have been able to publish my Figma Make Kit somewhat successfully once, but now when I go to update it I get an error about Syntax in Main.tsx (Screenshot below). There are no syntax errors that the agent can find and there is no Main.tsx in the files.
The Figma Make agent says, “the validator's error message names a file that isn't in your source tree.
The system prompt for this environment also notes that the real entrypoint is __figma__entrypoint__.ts, auto-generated at runtime. So "main.tsx" in the error is almost certainly either:
- A hardcoded/generic placeholder string in Figma Make's validator
- A reference to a generated file you can't see or edit
Either way, there's nothing in your source you can rename or fix to make that specific message go away.”
How can I clear this error and update my Figma Kit?
Possibly contributing to this issue: I changed the Name= value in Package.json but I had the agent update all instances of the new name.
Other troubleshooting I have done:
- refactored a very large App.tsx file into smaller files
- ran Console when publishing to see about other issues
- had the agent create a main.tsx file

