Upon pressing the button to display the task pane, I encountered an error message in the console window that reads: "Uncaught (in promise) TypeError: Cannot read property 'name' of undefined". This error persists and I am unable to resolve or comprehend it.
"Uncaught (in promise) TypeError: Cannot read property 'name' of undefined"
at t (word-web-16.00.js:26)
at word-web-16.00.js:26
at Office.js:46
at Array.forEach ()
at d (Office.js:46)
at Office.js:46
https://i.sstatic.net/w41rg.png
To recreate this issue, sideload the TypeScript add-in into Word Online and press the button to show the task pane. Despite displaying the task pane successfully, the aforementioned error message persists.
I have attempted various URLs for the Office.js script files but the error message remains consistent:
src="appsforoffice.microsoft.com/lib/beta/hosted/Office.js"
src="appsforoffice.microsoft.com/lib/1/hosted/Office.js"
src="appsforoffice.microsoft.com/lib/1.1/hosted/Office.js"
This error occurs on Word Online for Windows 10 64-bit running Office 64-bit with Microsoft Edge browser version 88.0.705.68.
The project repository, consisting of only 5 files, can be found at: https://github.com/OfficeAddins/undefined
An issue regarding this error has been raised on GitHub but remains unanswered: https://github.com/OfficeDev/office-js/issues/1644