I'm happy to know that this problem is fixed for you, I just want to share my experience with this error while I developed the Word Add-in. Maybe the next person who get this error will find it helpful. I restarted my computer and the Add-in stopped working, I saw your error. My Word Add-in stack: Next.js, JS. IDE - Cursor. Mac. Clearing the Word cache helped effectively.
I also tried:
Finally the way I described before helped to show my Word Add-in and work with it. But I need to mention that I cleared the cache several times. I had issues with branches. Word didn't wanted to show me my development progress and showed only version from the main branch. Then I cleaned wef and cleaned again, and in the end I got the result I needed.
Thank you for the attention!