Skip to content

React Mismatch/Setup errors do not inform the user of anything #9885

@Coruscate5

Description

@Coruscate5

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 (latest)
  • SPFx version (1.19.0)
  • Node.js version (18)

Describe the bug / error

React version issues do not create errors in Gulp serve, even with strict linting, and the browser does not alert the user to any issues. The user is simply given the following (generic error):

Uncaught (in promise) Error: Failed to create application customizer 'ClientSideExtension.ApplicationCustomizer.970fe979-1d72-4e98-b295-3a9bf1f36291'. Error information is 'Extension failed to load for componentId "970fe979-1d72-4e98-b295-3a9bf1f36291".'.

The issue was reported here but did not resolve in a way that helps developers in this framework: #7050

Steps to reproduce

Steps to reproduce:

  1. Create a new version of a solution using yeoman generator.
  2. Run npm i react react-dom
  3. Import react in generated .ts file: import * as React from 'react';
  4. Create basic react element in generated .ts file for app customizer after alert. Use the following line: const a = React.createElement("div", null, null);
  5. Run gulp serve

Expected behavior

Gulp or SP dependency should inform the user that this React version is incompatible with the current plugin, per https://learn.microsoft.com/en-us/sharepoint/dev/spfx/compatibility . No error message or build issue is encountered in the build process, and the browser simply reports that the Customizer couldn't load.

Metadata

Metadata

Assignees

Labels

Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.Needs: Triage 🔍Awaiting categorization and initial review.area:docsCategory: SharePoint developer/development documentation relatedarea:spfxCategory: SharePoint Framework (not extensions related)sharepoint-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