Hi all,
I have a problem on sdk 34,
i’m using “expo-file-system”: “~6.0.0”, and (import * as FileSystem from ‘expo-file-system’) in my project, when i start expo it not works and show error
undefined is not an object (evaluating Expo.Filesystem.cacheDirectory)
i wasn’t use Expo.Filesystem.cacheDirectory in project.
my package:
“expo”: “^34.0.3”,
“expo-file-system”: “~6.0.0”
“react”: “16.8.3”,
“react-native”: “https://github.com/expo/react-native/archive/sdk-34.0.0.tar.gz”,
and my app.json:
“sdkVersion”: “34.0.0”,
i had try to remove nodeModule + packaeg_lock and npm install
Thanks.
Hi! Could you share a repro for this? Just tried it using a Snack in sdk 34 - FileSystem.cacheDirectory - Snack - and it worked, so I’m thinking something must be up with your installation
Hi Charlie,
in the snack that u linked above it works.
My problem is that app doesn’t start throwing this error ‘undefined is not an object (evaluating Expo.Filesystem.cacheDirectory)’ althoug i do not use Filesystem.chaceDirectory in my code.
in app.json i got “sdkVersion”: “34.0.0”,
And in package.json
“expo”: “^34.0.3”,
“expo-file-system”: “~6.0.0”,.
And i use :
mport * as FileSystem from ‘expo-file-system’;
The problem is that in my project i use the library ‘rn-pdf-reader-js’. This library uses an old version of expo, and import file system as :
‘import { FileSystem } from ‘expo’ instead of ’ import * as FileSysem’ from ‘expo-file-system’.
So i get the error 'cannot read property ‘cacheDirectory’ of undefined…
I’m not able to find where Image.js:142:34 is, though
Is your code calling createAnimatedComponent or something related to that? It seems that whatever is calling createAnimatedComponent is not passing in a valid component.