Configerror: cannot determine which native sdk version your project uses because the module `expo` is not installed. please install it with `yarn add expo` and try again.

Error: configerror: cannot determine which native sdk version your project uses because the module ‘expo’ is not installed. Please install it with ‘yarn add expo’ and try again.

Explanation:

This error occurs when there is an absence of the ‘expo’ module in your project. The ‘expo’ module is required to determine the native SDK version used by your project.

Solution:

To resolve this error, you need to install the ‘expo’ module using yarn by following these steps:

  1. Open your terminal or command prompt.
  2. Navigate to your project directory.
  3. Run the following command:
    
      yarn add expo
    
  

After running the command, the ‘expo’ module will be installed in your project.

Example:

    
      $ yarn add expo
      yarn add v1.22.5
      [1/4] Resolving packages...
      success Already up-to-date.
      info All dependencies are up-to-date.
      success Saved lockfile.
      success Saved 1 new dependency.
      info Direct dependencies
      └─ expo@x.x.x
      Done in 1.23s.
    
  

In the example above, the ‘expo’ module is successfully added to the project using yarn, and the version number of the installed ‘expo’ module is displayed.

Read more interesting post

Leave a comment