Apologies for any confusions and lack of clarity in the doc. I'll also relay this feedback internally to our content team.
Depending on the sample repo, typically, you would try these steps:
To update the @material-ui/core
package version in your GitHub repository, you can follow these steps:
- Open your GitHub repository in a web browser.
- Navigate to the
package.json
file in your repository. - Click the pencil icon in the top right corner of the
package.json
file to edit the file. - Update the
@material-ui/core
version to the latest version that is compatible withreact
version - Scroll down to the bottom of the page and click the "Commit changes" button to save your changes.
You may checkout the suggestions outlined in this similar discussion thread: Error while trying to install mui core with npm.
Just to highlight, adding Search to Static WebApps is 4-part tutorial.
1 - Overview of adding search to a website with .NET
2 - Create and load Search Index with .NET