-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
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:
- Create a new version of a solution using yeoman generator.
- Run npm i react react-dom
- Import react in generated .ts file: import * as React from 'react';
- Create basic react element in generated .ts file for app customizer after alert. Use the following line: const a = React.createElement("div", null, null);
- 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.