Skip to content

SPFx Copilot component not working in M365 Copilot #10957

Description

@HarminderSethi

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version -150.0.7871.116
  • SPFx version - 1.24.0-beta.2
  • Node.js version 22.14

Describe the bug / error

I have created a Copilot Component from scratch with react framework option and I am not able to run it in M365 Copilot after deployment. It shows a blank screen

Image

There is no error in the console but the Network call shows 404 for endpoint '/_api/mcp/beta/spfx'

Image Image

Steps to reproduce

  1. Create a new Copilot Component using the Yeoman generator
  2. Build and package the component
  3. Add the package to the tenant app catalog
  4. Click "Add to Teams" button
  5. Go to M365 Copilot and select the agent

Expected behavior

I should be able to use the agent in M365 Copilot without any error.

Metadata

Metadata

Assignees

Labels

area:spfx-copilot-appstype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions