Is it safe to assume you have run:
expo install expo-constants?
If not, do that, and rebuild.
If this is not solving your error try:
- Deleting package-lock and node modules
If neither of the above solutions work, please provide more information.
Edit: Constants documentation.