generator-office icon indicating copy to clipboard operation
generator-office copied to clipboard

Add-in does not sideload with new start:web syntax

Open Rick-Kirkham opened this issue 3 years ago • 4 comments

Prerequisites

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

  • [x ] I am running the latest version of Node and the tools
  • x ] I checked the documentation and found no answer
  • [x ] I checked to make sure that this issue has not already been filed

Expected behavior

When I run the command:

npm run start:web -- --document {url}

I expect the file to open and the add-in to be sideloaded in it.

Current behavior

The document opens and I get the following two prompts, but the add-in is not sideloaded. I have to manually sideload it.

Screenshot 2022-01-14 134207

Screenshot 2022-01-14 134235

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. In the root of an add-in project that was created with Yo Office, run the command:
npm run start:web -- --document {url}
  1. Answer to the two prompts in the screenshot above.

Context

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

  • Operating System: Win11
  • Node version: 16.13.1
  • Office version: 2202 43910.20000
  • Tool version: latest

Failure Logs

Please include any relevant log snippets, screenshots or code samples here.

Rick-Kirkham avatar Jan 14 '22 22:01 Rick-Kirkham

The first dialog is the explanation . . . you have to enable developer mode in order to automatically sideload add-ins.

millerds avatar Feb 07 '22 19:02 millerds

@millerds We did that. So, that's not the problem. Is there a way to confirm that developer mode has been enabled? Something to see in the registry maybe?

Rick-Kirkham avatar Feb 07 '22 19:02 Rick-Kirkham

I'm facing the same issue w/ chrome

Operating System: Arch Linux Node version: 16.13.2 / 17.4.0 Tool version: latest

Browser opening up w/ given document. But no add-in to be found.

DarwinsBuddy avatar Feb 08 '22 18:02 DarwinsBuddy

I don't know how to verify developer mode is enabled other than the dialog asking for it should disappear. If you check the box and click OK does that dialog box show up again?

millerds avatar Feb 14 '22 20:02 millerds

@DarwinsBuddy - Can you address the question above?

akshayta23 avatar Jun 28 '23 05:06 akshayta23

It's been a year. What exactly can I assist with?

DarwinsBuddy avatar Jun 28 '23 06:06 DarwinsBuddy