Trying to use continuous deployment for an expo project (web)

Hi,

When deploying my expo app using the CLI everything is fine.

expo build:web
netlify deploy --dir web-build --prod

But when trying to use the continuous deployment i can’t get the site to be deployed correctly.

Base directory Not set
Build command expo build:web
Publish directory web-build

8:38:11 PM: This command requires Expo CLI.
8:38:11 PM: Do you want to install it globally [Y/n]?
8:38:11 PM: Skipping functions preparation step: no functions directory set
8:38:11 PM: Caching artifacts
8:38:11 PM: Started saving node modules
8:38:11 PM: Finished saving node modules
8:38:11 PM: Started saving yarn cache
8:38:11 PM: Finished saving yarn cache
8:38:11 PM: Started saving pip cache
8:38:11 PM: Finished saving pip cache
8:38:11 PM: Started saving emacs cask dependencies
8:38:11 PM: Finished saving emacs cask dependencies
8:38:11 PM: Started saving maven dependencies
8:38:11 PM: Finished saving maven dependencies
8:38:11 PM: Started saving boot dependencies
8:38:11 PM: Finished saving boot dependencies
8:38:11 PM: Started saving go dependencies
8:38:11 PM: Finished saving go dependencies
8:38:14 PM: Build script success
8:38:14 PM: Starting to deploy site from 'web-build'
8:38:14 PM: Creating deploy tree 
8:38:14 PM: 0 new files to upload
8:38:14 PM: Starting post processing
8:38:14 PM: 0 new functions to upload
8:38:14 PM: Post processing done
8:38:14 PM: Site is live
8:39:16 PM: Finished processing build request in 1m59.752319726s

So it seems that expo-cli is not being installed, so it can not create the build, the web-build folder.

What am I missing here in order to get expo-cli to be installed and build this correctly?

Many thanks for your time and help.

hello, is expo-cli included in your package.json file?

1 Like

Thanks, I feel awful lol :wink:

1 Like

ah! no worries! simple problems are good problems :slight_smile: