Breaking change in 1.18 -> Argument of type '"blob"' is not assignable to parameter of type 'ResponseType' #9639
Labels
type:bug-suspected
Suspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
Cannot use MSGraphClientV3. The
responseType
function does not recognize strings (i.e.blob
) as valid arguments, expecting aResponseType
type argument instead. This was not an issue in the previous version (1.17).Example:
And the build produces this error:
Argument of type '"blob"' is not assignable to parameter of type 'ResponseType'.ts(2345)
Steps to reproduce
yo @microsoft/sharepoint
npm i @microsoft/sp-http
src/webparts/helloWorld/HelloWorldWebPart.ts
onInit
method to look like this:gulp serve
commandError - [tsc] src/webparts/helloWorld/HelloWorldWebPart.ts(45,25): error TS2345: Argument of type '"blob"' is not assignable to parameter of type 'ResponseType'.
Expected behavior
The build to succeed.
The text was updated successfully, but these errors were encountered: