nsharma98
nsharma98

Reputation: 229

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?

Upvotes: 0

Views: 104

Answers (2)

Rick Kirkham
Rick Kirkham

Reputation: 9684

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.

Upvotes: 1

Rick Kirkham
Rick Kirkham

Reputation: 9684

I think that the first and second add-ins are using the same domain, probably something like localhost:3000 and Office or the browser has cached the files from the first add-in. Try clearing the Office cache. See Clear the Office cache.

Upvotes: 0

Related Questions