Can't add React to App Customizer #7050
Labels
Needs: Triage 🔍
Awaiting categorization and initial review.
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
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
Additional environment details
Describe the bug / error
SPFx is not loaded when I try to use React.
The following message appears in the browser console:
Tried on Linux as well with the same versions - doesn't work.
Steps to reproduce
npm i react@16 react-dom@16 @types/react@16 @types/react-dom@16
- Office react libraries have dependency on react > 16.8 and < 17, so use version between.import * as React from 'react';
const a = React.createElement("div", null, null);
gulp serve
Expected behavior
Alert gets displayed.
The text was updated successfully, but these errors were encountered: