Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to sideload the Office Add-in when running 'npm start'

I'm trying to run Outlook-add-in using npm start. But it gives me an error that Sideloading the Office Add-in... Error: Unable to start debugging. Error: Unable to sideload the Office Add-in. Error: Sideload is not supported.

I'm running direct demo project which Microsoft provided for Outlook-add-in. Also rund npm run dev-server before npm start as i'm running in mac. https://learn.microsoft.com/en-us/outlook/add-ins/quick-start?tabs=yeomangenerator

I have done some research to find the issue but unable to come up with any. Any help would be grateful.

like image 607
Jay Avatar asked Sep 01 '19 06:09

Jay


People also ask

How do I Sideload office Add-ins?

Sideload an Office Add-in in Office on the web manually On the Insert tab on the ribbon in the Add-ins section, choose Office Add-ins. On the Office Add-ins dialog, select the MY ADD-INS tab, choose Manage My Add-ins, and then Upload My Add-in. Browse to the add-in manifest file, and then select Upload.

How do I enable Add-ins Office 365?

In the admin center, go to the Settings > Integrated apps > Add-ins page. Select Deploy Add-in at the top of the page, and then select Next. You can also deploy add-ins in the admin center through Integrated Apps.

How do I reinstall an Outlook addin?

From the menu bar, navigate to File > Options. The Outlook Options window appears. Click Add-ins. Select COM Add-ins on the Manage dropdown menu (if it is not already selected), then click Go.

How do I publish an add-in in Outlook?

Steps to deploy outlook ad In in organization Step 1: Open Exchange Online Admin Center using the below link. Step 2: From the left navigation, expand the organization and then select Add-ins. Step 3: Once you click on the button, Add-ins window will be open. Step 4: Then select and expand (+) icon.


3 Answers

I'm not sure if this has been answered already, but I had the same issue. I used the following link to enable side-loading: Sideload Outlook plugins for testing

Once you have that enabled, you should be able to at least run the dev-server and work with the plugin:

npm run dev-server
like image 184
KevinThePepper23 Avatar answered Nov 15 '22 07:11

KevinThePepper23


I'm facing the same issue and after some research I found out the Outlook is not supported, only Excel, PowerPoint and Word can be debugged on desktop.

like image 40
Lumpenstein Avatar answered Nov 15 '22 07:11

Lumpenstein


For developers on Mac, it is recommended using Node Version Manager to install Node.js with the right permissions.

Also, you need to make sure the certificate is installed correctly.

Run this command: npx office-addin-dev-certs install.

If the certificates are already installed, you'll see a message:

You already have trusted access to https://localhost.

If the certificates are not installed, it will show a message:

The developer certificates have been generated in ...
Installing CA certificate "Developer CA for Microsoft Office Add-ins"...

You should then see the dialog asking to install the certificate.

After saying yes, it should then show:

You now have trusted access to https://localhost.
Once the certificates are installed, you should be able to run the dev server without problems.

See Unable to start the dev server for more information.

like image 30
Eugene Astafiev Avatar answered Nov 15 '22 06:11

Eugene Astafiev