Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module expo-linear-gradient #10

Open
4 tasks done
JuanGro opened this issue Jan 20, 2022 · 4 comments
Open
4 tasks done

Unable to resolve module expo-linear-gradient #10

JuanGro opened this issue Jan 20, 2022 · 4 comments

Comments

@JuanGro
Copy link

JuanGro commented Jan 20, 2022

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed
  • I'm reporting the issue to the correct repository (for multi-repository projects)

Expected Behavior

Run the app in iOS simulator or real device.

Current Behavior

The app brokes and I cannot use it.

Failure Information (for bugs)

After installing the dependencies I tried to run the app but it retrieves the an error (check next sections).

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Download the repository
  2. Run npm install -g expo-cli
  3. Type npm install
  4. Run npm start

Context

  • Device: Macbook
  • Operating System: macOS Monterey 12
  • Browser and Version: Opera and Chrome

Failure Logs

Logs for your project will appear below. Press Ctrl+C to exit.
› Opening exp://127.0.0.1:19000 on iPhone 8
iOS Bundling failed 1044ms
Unable to resolve module expo-linear-gradient from /Users/user/Desktop/argon-pro-react-native-v1.6.0/screens/Privacy.js: expo-linear-gradient could not be found within the project.

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  2 | import { ScrollView, StyleSheet } from "react-native";
  3 |
> 4 | import { LinearGradient } from "expo-linear-gradient";
    |                                 ^
  5 | import { Block, Button, Text, theme } from "galio-framework";
  6 |
  7 | import argonTheme from "../constants/Theme";
@lucaisoardi
Copy link

Hi there,

Same problem for me. Do you have fixed?

@rarestoma
Copy link

Hi @JuanGro, @lucaisoardi,

Thank you for working with our products and sorry for our late response.

Can you please try installing it using the following package.json and see if it works?

package.json.zip

Thank you,
Rares

@kamunds
Copy link

kamunds commented Apr 9, 2022

I had similar issues trying to run the Argon Pro app right out of the box. To get it working, I had to:

Install the missing 'expo-linear-gradient' package.
Upgraded the app to use Expo SDK 44.
Updated my babel.config.js file.

I likely did a few other things like clearing the Expo cache, reinstalling all packages, etc., but these were the big steps that got me up and running.

@Ndahseh
Copy link

Ndahseh commented Jul 26, 2024

Use npx expo install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants