OfficeDev / generator-office

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

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

Closed Rick-Kirkham closed 1 year ago

Rick-Kirkham commented 2 years ago

Prerequisites

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

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}
  2. 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.

Failure Logs

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

millerds commented 2 years ago

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

Rick-Kirkham commented 2 years ago

@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?

DarwinsBuddy commented 2 years ago

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.

millerds commented 2 years ago

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?

akshayta23 commented 1 year ago

@DarwinsBuddy - Can you address the question above?

DarwinsBuddy commented 1 year ago

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