SharePoint / SharePoint/sp-dev-docs

SPFx WebPart fails to load on Classic Page Recently with new instance.

Open
#10,254 3 comments 0 reactions 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since May 13, 2025.

area:pages sharepoint-developer-support type:bug-confirmed type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

Target SharePoint environment

SharePoint Online

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

💥 SharePoint Framework

Developer environment

None

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
  • SPFx version
  • Node.js version
  • etc
Describe the bug / error

Adding a new SPFx WebPart to a classic publishing page in the Pages library of a SharePoint Online site results in a runtime error. Existing classic pages with SPFx WebParts still work,new instance and old instance in Modern page still work and even the same SPFx WebPart continues to function if it was already present before the issue appeared. However, adding the same WebPart as a new instance on the same page now fails systematically.

Image

Steps to reproduce
  1. open SharePoint online classic page
  2. Edit page and add any SPFx web part which is working in same site on different/ same page
  3. Save the page.
  4. You will see the error
Expected behavior

Web part load and I should see the content.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.