A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
I'm not sure whether this is an actual bug or if this is misuse of the Office.js library, however I've been getting an internal error whenever I try to use getFileAsync method in my React office add-in for Word (Desktop).
Here is the minimum reproduction repo. The function is being called by an added test button in the add-in called 'Turn doc into PDF', and prints the error whenever the request fails. The getFileAsync structure is nearly identical to the template code provided here. I've no clue what the actual issue could be as the 5001 internal error could stand for anything.
I've also converted my React class components to functional components and it seems to work well. Unless this is an issue and could be messing with the library, please let me know.
Environment
Platform [PC desktop, Mac, iOS, Office on the web]: PC
Host [Excel, Word, PowerPoint, etc.]: Word (Desktop)
Office version number: latest
Operating System: Windows
Details
Hello!
I'm not sure whether this is an actual bug or if this is misuse of the Office.js library, however I've been getting an internal error whenever I try to use getFileAsync method in my React office add-in for Word (Desktop).
Here is the minimum reproduction repo. The function is being called by an added test button in the add-in called 'Turn doc into PDF', and prints the error whenever the request fails. The getFileAsync structure is nearly identical to the template code provided here. I've no clue what the actual issue could be as the 5001 internal error could stand for anything.
I've also converted my React class components to functional components and it seems to work well. Unless this is an issue and could be messing with the library, please let me know.
Environment
Platform [PC desktop, Mac, iOS, Office on the web]: PC Host [Excel, Word, PowerPoint, etc.]: Word (Desktop) Office version number: latest Operating System: Windows