Skip to content

'Allow debug scripts' popup only showing once #5385

@MatthiasDh

Description

@MatthiasDh

Category

  • Bug

Describe the bug

When I'm serving a WebPart it opens the browser to the corresponding page in my serve.json file. I get the popup screen to allow debug scripts. However when I reload my page it doesn't show this popup anymore only on initial serve. By this popup not showing anymore I can't debug my webpart.

Expected behavior

Every refresh shows the 'Allow debug scripts' popup

Developer environment

  • OS: [MacOS]
  • Browser(s): [Chrome, Edge, Safari]
  • Tooling: [VS Code, SPFx]

Additional context

This issue happend out of nowhere, didn't change anything.

Serve.json file:

{
  "$schema": "https://developer.microsoft.com/json-schemas/core-build/serve.schema.json",
  "port": 4321,
  "https": true,
  "initialPage": "https://localhost:5432/workbench",
  "api": {
    "port": 5432,
    "entryPath": "node_modules/@microsoft/sp-webpart-workbench/lib/api/"
  },
  "serveConfigurations": {
    "default": {
      "pageUrl": "https://xxxxx.sharepoint.com/Sites/IntranetContoso/SitePages/dev-page.aspx",
      "customActions": {
        "2dc60fe8-90cf-49ce-8650-7d0d6da14bf1": {
          "location": "ClientSideExtension.ApplicationCustomizer",
          "properties": {
            "testMessage": "Test"
          }
        }
      }
    }
  }
}

@andrewconnell editted code fencing (use 3 backticks, not 2, for fenced blocks) for readability

Thanks for your contribution! Sharing is caring.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-extensionsCategory: SharePoint Framework Extensionsno-recent-activityStale issue due to lack of activity. Closed after 7 days with no activity by OP.status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:bug-confirmedConfirmed bug, not working as designed / expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions