Module '"@microsoft/sp-http"' has no exported member 'SPHttpClientBatch'

Dineth Randunu 1 Reputation point
2021-11-14T04:40:55.883+00:00

Hi,
I am trying to use SPHttpClientBatch class and I am getting the error:
Module '"@microsoft/sp-http"' has no exported member 'SPHttpClientBatch'

Also I noted the definition for SPHttpClientBatch has been excluded in the node modules @microsoft/sp-http.

Is SPHttpClientBatch not supported in the recent SharePoint Framework releases ?

Thank you very much

Microsoft 365 and Office SharePoint Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MichaelHan-MSFT 18,126 Reputation points
    2021-11-15T05:40:40.927+00:00

    Hi @Dineth Randunu ,

    Yes, you are right. The SPHttpClientBatch is still in beta, You need to include the --plusbeta flag to use it.

    The similar issue is reported here: https://github.com/SharePoint/sp-dev-docs/issues/3906


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.