Reputation: 4721
I did some mess with the dependencies and installed the react-native-svg again even if expo already had. So i got the error while starting my application:
Unable to resolve "../lib/util" from "node_modules\react-native-
svg\elements\Text.js"
No matter what my source code is. I tried so far to remove and reinstall the expo-cli
npm install expo-cli --global
I tried to remove manually the node_modules folder of the npm install on my computer and from my project folder
I tried to remove completely the project folder and to recreate a new project with the same name
But now even on clean project and after expo-cli reinstall I get the error above.
I'm lost in space
Upvotes: 1
Views: 895
Reputation: 28539
I’ve discovered that if you accidentally install a dependency that already exists in Expo this is the simplest way to get things running again:
Expo
Expo
Expo
app on your device.package-lock.json
node_modules
folderpackage.json
npm i
Expo
using expo start -c
Upvotes: 2