Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Switching Office Javascript APIs to Preview on Yeoman Office Generated project

$
0
0

I am trying to access the Office Javascript Preview APIs on my Angular Yeoman Generated project. I am writing this Office add-in on a Mac in Visual Studio Code. I wrote code on Script Lab with the preview library but do not know how to do the same for the Yeoman generated Office project. When I try to access the ".addFromBase64()" function, I get:

"Property 'addFromBase64' does not exist on type 'WorksheetCollection'.ts(2339)"

I have already tried changing the CDN references from Javascript 1.8 APIs to the Javascript Beta (Preview) APIs and added the @types suggested by the note next to the section. I found and replaced 2 instances of the 1.8 APIs in 'commands.html' and 'taskpane.html'.

I have tried the steps for Updating an Office Add-in project created with a text editor or other IDE.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>