question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update expo to sdk33 / sdk34

See original GitHub issue

As expo package is deprecated, this is displayed when running expo start and building app :

The following APIs have moved to separate packages and importing them from the "expo" package is deprecated: Constants, FileSystem.

1. Add correct versions of these packages to your project using:

   expo install expo-constants expo-file-system

   If "install" is not recognized as an expo command, update your expo-cli installation.

2. Change your imports so they use specific packages instead of the "expo" package:

 - import { Constants } from 'expo' -> import Constants from 'expo-constants'
 - import { FileSystem } from 'expo' -> import * as FileSystem from 'expo-file-system'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
phillipsamcommented, Aug 7, 2019

Hi @mattias-persson, we are planning to get this in a release within the next two weeks. We will let you know when this has been released.

2reactions
HappyTepidcommented, Jul 29, 2019

Hi @mattdyoung, not sure if I should open a separate issue for this, but it looks like SDK34 will be out imminently as Dependabot triggered a build for us, and I’m seeing this all over the place:

TypeError: Cannot read property 'cacheDirectory' of undefined

> 1 | import bugsnag from "@bugsnag/expo";
    | ^

I’m assuming it’s due to the changes in expo-file-system that @lc3t35 flagged, since looking at queue.js I can see FileSystem.cacheDirectory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upgrade Expo SDK
Learn how to incrementally upgrade the Expo SDK version in your project. ... Upgrade from SDK 34. Run expo update 35.0.0 ... SDK...
Read more >
How to upgrade expo sdk to specific vresion
Update to the latest version of EAS CLI if you use it: npm i -g eas-cli. Run expo upgrade in your project directory....
Read more >
64-Bit Support and Android App Bundles
... Bundles (AABs) with SDK33 projects and, of course, with SDK34 upon its release. (Since SDK33 is the first Expo SDK version that...
Read more >
Increase react-native-svg Expected Version Range for ... - Expo
https://expo.canny.io/feature-requests/p/upgrade-react-native-svg ... at the File Level through in v9.5.3(supported version for SDK34), for inlined Svgs:.
Read more >
expo-video-player
1.5.x, >= SDK 34 ; 1.4.x, >= SDK 34 ; 1.3.x, >= SDK 34 ; 1.2.x, >= SDK 33.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found