FileSystem uploadAsync type error

  1. SDK Version: 37
  2. Platforms: iOS

I am receiving the following error when trying to use FileSystem.uploadAsync:

Property 'uploadAsync' does not exist on type 'typeof import("/Users/vaibhavverma9/Desktop/realtalk-app/dating-app/node_modules/expo-file-system/build/index")'.

Just FYI, I imported FileSystems at the top as follows:

import * as FileSystem from 'expo-file-system';

Looks like I needed to update to 38

Glad you got things sorted out, @vaibhavverma9. Yeah, the background upload method was added as part of SDK38.

One thing I’d recommend getting in the habit of is checking the Expo changelog here: https://github.com/expo/expo/blob/master/CHANGELOG.md to stay on top of the changes between SDK versions.

Cheers,
Adam

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.