SharePoint / sp-dev-training-spfx-webpart-proppane

SharePoint Framework training package - Working with the Web Part Property Pane
MIT License
12 stars 19 forks source link

Webpart sample under folder '02-custom-fields' not getting loaded to workbench. #85

Open JefinDX opened 2 weeks ago

JefinDX commented 2 weeks ago

When I tried to run the webpart project sample for 'custom property pane field using React & Fluent UI' (folder: 02-custom-fields), gulp serve completed successfully but the webpart is not getting loaded to page. Getting the below error.

image

I haven't made any changes to the project. Just did npm install on the project folder and tried to gulp serve the webpart.

JefinDX commented 2 weeks ago

I believe the issue is because of the React version. SPFx v1.19.0 needs React v17.0.1.

image

JefinDX commented 2 weeks ago

Did npm install react@17.0.1 react-dom@17.0.1 and boom.. it worked. Successfully wasted my 2 days because of this error. Finding these spfx related errors are really a PIA.