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

Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,595 questions
{count} votes