Skip to content

CommandSet Extensions not working with gulp serve #3914

@KoenZomers

Description

@KoenZomers

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Expected or Desired Behavior

If using gulp serve to develop and test a CommandSet Extension locally against a SharePoint Online environment, the button(s) to show up in your list or document library

Observed Behavior

The buttons will never show up in the list or document library when using gulp serve to serve it from your localhost. It does work if you gulp package-solution it and throw the sppkg into the Add-In Catalog.

The fault exists on Targeted Release tenants. It works fine on Standard Release tenants or for users not being in the Targeted Release Selected People group.

Steps to Reproduce

  1. Use the yo @microsoft/sharepoint generator to build a new ListView CommandSet following the guidelines from https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api
  2. Copy the URL of some list or document library to the pageUrl node in serve.json file in your solution
  3. Run gulp serve
  4. The browser will open up the list or document library you used at step 2 but will never show any of the command buttons
  5. gulp package-solution the same solution, throw the generated sppkg file in an add-in catalog, add the add-in to a site and go to the same list as used at step 2 and you will see the buttons

SPFx 1.82
NPM 5.6.0
NodeJS 8.9.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-extensionsCategory: SharePoint Framework Extensionsstatus:fixedIssue was fixed in current or prior release.status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions