OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
815 stars 207 forks source link

Outlook add-in disappearing after side loading in outlook app #792

Closed nivethan-me closed 7 months ago

nivethan-me commented 8 months ago

Prerequisites

Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

Expected behavior

After side loading Outlook add-in should appear in My add-ins section in outlook and should be accessible in outlook app

Current behavior

after selecting the manifest.xml file add-in show up in the My add-ins section temporarily and disappears once i close that Office add-ins window.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. in terminal type yo office
  2. Choose a project type: Office Add-in Task Pane project using React framework
  3. Choose a script type: TypeScript
  4. What do you want to name your add-in? check-bug
  5. Which Office client application would you like to support? Outlook
  6. cd check-bug
  7. npm run dev-server
  8. open the Outlook application and sideload the add-in by choosing the manifest.xml file
  9. now close the Outlook Add-ins window and open again
  10. You can find that the Add-in disappeared from the Outlook

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

millerds commented 7 months ago

What version of Outlook on Windows are you using? When you open Outlook to sideload the add-in do you see the "All Apps" or "Get Add-ins" button? What happens if you run "npm start" on the Windows machine instead of "npm run dev-server"?

nivethan-me commented 7 months ago

@millerds

What version of Outlook on Windows are you using?

following comes from About Outlook section You have Microsoft Outlook Version 1.2023.1108.200 (Production). Client Version is 20231103003.19 .

When you open Outlook to sideload the add-in do you see the "All Apps" or "Get Add-ins" button?

Yeah i get the "Get Add-ins" button

What happens if you run "npm start" on the Windows machine instead of "npm run dev-server"?

it opens a new terminal and all looks green and i can even see the taskpane page on my browser at https://localhost:3000/taskpane.html but "My Add-ins > Custom Addins" says No add-ins found

millerds commented 7 months ago

Being able to browse the html file in the browser means that webpack is running and serving up the content for the add-in. If an add-in is being removed from the "my add-ins" section it suggests there is something wrong with the manifest file. Can you run the 'npm run validate' command and see what the output says? Can you also check what happens if you try and sideload it using OWA instead of the rich client application?

prasath-pc commented 2 months ago

@millerds same issue for me as well, what could be the issue ?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

0a2c0a96-c046-42cf-8545-8228095caf17 1.0.0.0 Pepper Cloud CRM en-US https://demo.peppercloud.com https://login.microsoftonline.com
250
ReadWriteItem false