Skip to content

SharePoint Add-in Compilation Error: Missing API Method #10485

@Pisarevv

Description

@Pisarevv

Target SharePoint environment

SharePoint Online

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

SharePoint Add-ins

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

  • SharePoint in Microsoft 365
  • Node.js version - v8.9.4
  • Tried on all of the listed browsers expect Safari

Describe the bug / error

Multiple SharePoint 2013 add-in applications that were working 2-3 days ago are now failing with a compilation error when users navigate to application pages. The error indicates a missing API method that may have been introduced in a newer SharePoint version, suggesting recent environment updates.

Observed Behavior
When users attempt to access SharePoint add-in pages, the applications fail to load with a server-side compilation error.

Image

Additional Context
Timeline: Applications were working normally until 2-3 days ago
Scope: Multiple SharePoint add-in applications affected (not isolated to one app)
The IsRemoveRedirectWithProofTokenOnSignInPageEnabled method appears to be part of newer SharePoint API versions that don't exist in SharePoint 2013 environments, but the compilation process is now trying to reference it.
There is nothing visible in the network tab indicating a bad request.

Potential Solutions Attempted
Added JavaScript stubs for missing APIs (ineffective for server-side compilation)
Removed SharePointForm controls (issue persists)
Cleared application cache and rebuilt solutions
The issue appears to be environmental rather than code-related, given the sudden onset affecting multiple working applications.

Steps to reproduce

  1. Deploy SharePoint 2013 add-in to SharePoint environment
  2. Navigate to any application page - in our scanario Contract.aspx
  3. Page fails to load with compilation error

Expected behavior

SharePoint add-in applications should load successfully when users navigate to the application pages, as they did 2-3 days ago.

Metadata

Metadata

Assignees

Labels

area:add-insCategory: SharePoint Add-in Development Modelsharepoint-developer-supportsharepoint-developer-supporttype: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