msgraph-sdk-javascript: Property 'LargeFileUploadTask' does not exist /node_modules/@microsoft/microsoft-graph-types/microsoft-graph"
Bug Report
Prerequisites
- Can you reproduce the problem?
- Are you running the latest version?
- Are you reporting to the correct repository?
- Did you perform a cursory search?
For more information, see the CONTRIBUTING
guide.
Description
Using
import * as MicrosoftGraph from '@microsoft/microsoft-graph-types';
The line:
const uploadSession = MicrosoftGraph.LargeFileUploadTask.createUploadSession(client, "REQUEST_URL", payload);
Based on the documentation here
Has TSlint complain “Property ‘LargeFileUploadTask’ does not exist on type 'typeof import(”{mypath}/node_modules/@microsoft/microsoft-graph-types/microsoft-graph")'.ts(2339)"
Am Using the right code?
SDK Version - [1.12.1]
- [] Node (Check, if using Node version of SDK)
Node Version - [The version of Node you are using]
- Browser (Check, if using Browser version of SDK)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 19 (9 by maintainers)
I reverted to 2.2.1 and gave up on the progress report. I think there is some disconnect between the 3.0.0-preview version and the graph factory of SPFx. My work is a SharePoint framework web part and I can’t use 3.0.0 as is.
Will love to tell you. I am working on a SPFx web part that users will use to submit files to different sites libraries (based on project number). the current part uses pnp/js “AddChunck” method but we found out that up to 10% of the times we get “Fail to Fetch” error. So I want to try the all mighty graph that everyone says it is the way to go. Up to now, the “Client” created from SPFx was not compatible with the one in the graph JS SDK. with 2.2.1 it is now compatible but all the examples I found so far did not work or did not explain what to do right.
As for the “itemid” I am guessing it means the root (or folder) in the library (drive in graph speak. (why change terms? more confusion?)) I did not find any documentation saying it is the folder. So far your answer was the best I got so far. Thank you much. I will try it out and let you know.