-
Notifications
You must be signed in to change notification settings - Fork 1k
Error using react-dom/server function renderToString #7033
Copy link
Copy link
Closed
Labels
area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Metadata
Metadata
Assignees
Labels
area:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
browser version
Versie 90.0.818.66 (Officiële build) (64-bits)
SPFx version
1.10.0
Node.js version
v10.22.0
Describe the bug / error
When using
import { renderToString } from 'react-dom/server';and running
gulp servethe call to
const stringElement = renderToString(<SomeReactComponent key={index} />)runs into
Steps to reproduce
See bug description
Expected behavior
When packaging the solution and using it from the App Catalog, this error does not occur and the renderToString function works as expected.