Skip to content

Cannot deploy SPFx Copilot Components in M365 Copilot #10946

Description

@yhabersaat

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

  • SPFx version: 1.24.0-beta.2
  • Node.js version: 22.22.2

Describe the bug / error

I have created a Copilot Component from scratch with no framework option and I cannot run it in M365 Copilot. When I select the agent in the Agents menu in M365 Copilot I'm getting the error "Something went wrong".

Image

I have some errors in the console:

Image

Debugging in the Copilot Workbench works well without any error.

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 can use the agent in M365 Copilot without any error.

Metadata

Metadata

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions