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.
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.
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.
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.
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.
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
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With