Search code examples
office-jsyeoman-generatorword-addins

Word Offic.js Add-in Runs Another Office.js


I have been developing a Microsoft Word Add-in using Office.js on a mac. I used the yeoman generator to setup the project. Then visual studio code as my IDE The first project runs fine when I use the npm start script to test my Add-in in Word.

I then decided to create another Add-in project again using the yeoman generator. This populates the project with some back hello world code. However when I run the new project I created using npm start, the code that is displayed in the add-in is from the first Add-in I was working on. The title of the taskpane is the name of the new project, but what is rendered is from the first project.

Has anyone run into this issue before?


Solution

  • Another possible cause of your symptoms is that the Node server for the first project is still running. Be sure to shut it down before you run npm start in the new project.