Difficulty in moving Office Add-in to VS Code

David Sutherland 20 Reputation points
2024-05-15T19:25:49.77+00:00

I raised this problem on Stack Overflow about two weeks ago, but nobody has given me an answer. Maybe you can help!I have been following this: https://learn.microsoft.com/en-us/office/dev/add-ins/overview/create-an-office-add-in-from-script-lab, and my example (see picture) works correctly. Despite this, in vs-code you it reports multiple errors - Office is not defined, $ is not defined, and it even objects to the use of console. What am I doing wrong?

vs-code taskpane.ts

Microsoft 365 and Office Development Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.