Next.js Discord

Discord Forum

Office Add in window.history[method] is not a function

Unanswered
Basque Shepherd Dog posted this in #help-forum
Open in Discord
Basque Shepherd DogOP
Trying to create an Outlook Plugin with Next.
Looks like it mostly workex, except I dont know how to handle this error.
I am trying to make a taskpane app. if I dismiss the error, it seems to be working but I havent tested further.

what do I do?

5 Replies

Basque Shepherd DogOP
Basque Shepherd DogOP
nvm. I solved it
office-js messes with that function so save it, and then restore after the script loads. only nessesary in dev mode. prod is fine without this change