Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: Duplicated files or mocks. ReactNative-Expo-sanity.io

so have been developing a react native app using Expo and sanity.io as back-end, when I implemented sanity as backend i started getting an error just on the mobile versions(ios simulator, and andorid studio), but the web version is still working fine.

Error i have been getting in the mobile versions

1

Android studio error

2

like image 887
sebastian velez Avatar asked Mar 20 '26 14:03

sebastian velez


1 Answers

The cause for me was that I had two different package.json files with the same value for the name property.

So if you go into your sanity sub folder and change the name: field inside of package.json to something different than the one in your main directory everything should work fine.

like image 122
Joeboulton Avatar answered Mar 23 '26 03:03

Joeboulton