SharePoint / SharePoint/sp-dev-docs
SPFx web part/s are not loading when navigating between modern pages
Open
@Ashlesha-MSFT is already working on this.
Since Sep 4, 2025.
area:spfx
Needs: Author Feedback
sharepoint-developer-support
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: 1.12.1
- Node.js version: 22.16
- etc
Describe the bug / error
When navigating through modern pages or back and forth in the browser, some spfx web parts fails loading.
The error message is actually the following:
What happens in the background is that the sp-page-assembly tried to remove a web part / node that does not exists and crashes.
Steps to reproduce
Place some spfx and Microsoft web parts to the page and navigate through the modern pages. When the page load is partial then the spfx web part fails loading.
Expected behavior
The web parts are loaded in any case.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.