This SharePoint framework tutorial we will discuss how we can fix the error The entry point for component has a dependency on “@microsoft/sp-http” that is not declared. The error comes while working with SPFX web parts.
The entry point for component has a dependency on “@microsoft/sp-http” that is not declared in the manifest
Recently I developed SP FX Web Part and then run the local workbench, while the local workbench is running are you opened the serpent workbench office SharePoint site, and add the webpart. But it gave me an error which says: The entry point for component has a dependency on “@microsoft/sp-http” that is not declared in the manifest.
To fix this issue I stopped the solution and then run the below command,
gulp clean
and then again I run the gulp serve command and then try to add the Web Part into the SharePoint workbench, this time I didn’t get any error.
You may like following SPFx tutorials:
- Can’t load the application on this page. Use the browser Back button to retry while adding SPFx web part into Microsoft Teams
- Property welcome does not exist on type ‘JSX.IntrinsicElements’ in SPFx React
- How to Create Site Columns, Content Type and Custom List using SharePoint Framework
- SharePoint client-side web part configurable properties in Property Pane using spfx
- Retrieve SharePoint list items using SharePoint framework (SPFx)
- Create a list using SharePoint framework (SPFx)
- cannot find module ‘@microsoft/sp-build-web’ SharePoint Framework (spfx)
- [spfx-serve] The api entry could not be loaded: node_modules/@microsoft/sp-webpart-workbench/lib/api/ in SharePoint Framework
This tutorial, we learn how to fix error The entry point for component has a dependency on “@microsoft/sp-http” that is not declared in the manifest.
I am Bijay a Microsoft MVP (8 times –Â My MVP Profile) in SharePoint and have more than 15 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com