All Questions
10
questions
8
votes
4
answers
5k
views
The following files share their name; please adjust your hasteImpl: * <rootDir>\package.json * <rootDir>\sanity\package.json
This is my first time using sanity and I have encounter with this problem, When running expo start , I will be very thankful if you can help me with this
jest-haste-map: Haste module naming collision: ...
3
votes
1
answer
640
views
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 ...
1
vote
0
answers
834
views
TypeError: undefined is not a function, js engine: hermes. Invariant Violation: "main" has not been registered
I have created a file to connect data from my sanity project to my app with the following code:
import { ImageUrlBuilder } from "@sanity/image-url";
import { createClient } from "@...
1
vote
0
answers
84
views
React Natice Expo with Sanity receive TypeError: undefined is not an object (evaluating '_sanity.default.fetch') error
TypeError: undefined is not an object (evaluating '_sanity.default.fetch')
sanity.js file
import client from '@sanity/client';
import imageUrlBuilder from '@sanity/image-url';
export const ...
1
vote
0
answers
93
views
Duplicated files or mocks when trying to use Expo Go App
Thank you for taking up sometimes to read this article and trying to help me to solve this problem.
I have this problem over and over and over for the last 14 days every time I try to open a project ...
0
votes
0
answers
24
views
Sanity GROQ Query Not Working in React Native App
I am building a react native project using react native expo and sanity cms. I have done the proper set up of sanity cms and also its schema. I have added the data in the localhost:333 server of ...
0
votes
0
answers
24
views
Sanity real-time update is not working on Expo
I'm tring to listen documents in sanity but getting this error
TypeError: Cannot read property '_nativeModule' of undefined, js engine: hermes
this is the part of my code that causing the error
const ...
0
votes
2
answers
42
views
Sanity.io fetch function running infinitely
import { View } from "react-native";
import React, { useState, useEffect } from "react";
import Memory from "../component/Memory";
import sanityclient from "../...
-1
votes
1
answer
1k
views
How to connect Sanity to React Native
I have been trying for ages to make Sanity work with React Native and It's not working out, read multiple documentations, followed many tutorials but no luck.... What am i doing wrong?
Made a simple ...
-1
votes
1
answer
223
views
I'm getting this error using React Native and Sanity: Unable to resolve "get-random-values-esm" from "sanity\node_modules\sanity\lib\index.js"
I'm using sanity and react-native with expo to create an app. but on the mobile devices I get the error using expo go.
i've tried deleting node_modules folder, and re-intstalling the node_models, i'...