The entry point for component has a dependency on "@microsoft/sp-http" that is not declared in the manifest react spfx

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:

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.

>