Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
1 answer
6k views

Expo: Cannot resolve entry file: The `main` field defined in your `package.json` points to a non-existent path

I am working with the default typescript template generated from the command line npx create-expo-app -t expo-template-blank-typescript and I get this error when I try to start the project. The main ...
TOPKAT's user avatar
  • 7,989
4 votes
1 answer
2k views

Monorepo with Expo and Multiple Entry Points

I have two Expo (React Native) apps that share most of their code and are already in production. We are trying to move them to a monorepo directory structure as follows: lerna.json package.json ...
Sebastian Garrido's user avatar
3 votes
1 answer
595 views

"Unable to resolve module ./src/main" when building a react-native app from an NX monorepo after installing Expo

What I'have done Created a NX monorepo with the react-native preset yarn add expo from workspace directory added metro dependency manually to package.json in the react native app directory pod ...
DxW's user avatar
  • 1,554
3 votes
0 answers
281 views

Webpack loader problem when importing React component in yarn workspaces

I am setting up a next and expo project in a monorepo with yarn workspaces. I always get the following error when trying to run a page with a component exported from another yarn workspace package: ...
Max's user avatar
  • 877
2 votes
0 answers
86 views

Why expo/tsconfig.base uses moduleResolution node?

Why expo tsconfig.base uses "moduleResolution": "node" instead for example "moduleResolution": "node16". I'm asking this because I'm working in a monorepo and I'...
NovaBG03's user avatar
2 votes
2 answers
2k views

Nextjs + Expo in Monorepo "Invalid Hooks Call"

I've created a monorepo with 4 packages like so: . ├── lerna.json ├── package.json ├── packages │   ├── admin-> Basic CRUD for backend with Nextjs │   ├── mobile-> Expo app │   ├── server-> ...
Jeremy's user avatar
  • 1,605
2 votes
0 answers
1k views

React-native eas-build failed android/ios on internal and production distribution

I'm working on Mac M1 Expo sdk: "^41.0.0" React-Native : "https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz" eas-cli/0.22.0 darwin-x64 node-v15.14.0 expo-cli: "4....
E.D's user avatar
  • 881
2 votes
0 answers
489 views

yarn-expo-workspaces with react hooks?

I feel like I was finally able to setup my expo monorepo using expo-yarn-workspaces until I encountered the following error: Invariant Violation: Hooks can only be called inside the body of a ...
user3376065's user avatar
  • 1,167
2 votes
0 answers
124 views

How to do Monorepo setup with react and react native apps for sharing code between them

I want to share most of react-native login with react web. I am using react-native-web package for this. importing file in from shared folder doesn't resolve to correct path. My project setup looks ...
shubham choudhary's user avatar
2 votes
2 answers
3k views

Expo: Unable to resolve module index.ts. None of these files exist

I'm trying out this template located here (https://github.com/t3-oss/create-t3-turbo). After installing the dependencies, I ran "pnpm dev" in the terminal. Expo gives this error Error: ...
Daniel Shumaker's user avatar
2 votes
1 answer
998 views

Using Expo React Native in Monorepo without Yarn

I have been trying to setup a monorepo using turborepo. I want to have a Nextjs application along with a React Native application (using Expo). I have come as far as getting everything to work using ...
Julius's user avatar
  • 31
1 vote
1 answer
2k views

expo monorepo with expo-yarn-workspaces: how to customize the metro.config.js file

I would like to setup a react-native expo (blank typescript template) project with monorepo yarn workspaces. My research on google points me to using this library expo-yarn-workspaces. At one step in ...
TheSoul's user avatar
  • 5,196
1 vote
1 answer
1k views

Install Expo package directly from Github

For some reason the Expo team is not updating their packages on npm and I need to install directly from their Github repo. The packages are in the packages/package-name folders on the main Expo ...
user473453's user avatar
1 vote
0 answers
54 views

Error on app launching using eas build in monorepo

I'm struggling a lot to figure out why do my application fails on iOS. I have a monorepo with the following architecture: - apps/ - app1/ - package.json - eas.json - src/ - ... - ...
Aniketos's user avatar
1 vote
1 answer
138 views

Unable to import component from library inside application Nx Expo React Native

I'm working with an Nx monorepo that includes an Expo React Native app and several libraries. I've run into a problem where importing a component from a library within the application results in Error:...
yuuval's user avatar
  • 13
1 vote
0 answers
101 views

Expo monorepo with react-navigation

I have tried to create a monorepo containing two Expo apps using React Navigation with different SDK levels and I forced it to use nohoist for all "workspaces": { "packages": ...
Archimedes Trajano's user avatar
1 vote
1 answer
1k views

Expo + NextJS "fs module not found" build error

Using a Solito (https://solito.dev/), I've built a monorepo for NextJS + Expo React Native cross-platform application where I've successfully deployed both web and iOS apps. But, I accidentally wiped ...
mfang's user avatar
  • 13
1 vote
1 answer
873 views

BUILD FAILED : 0.72.4 main.jsbundle does not exist

I am working on monorepo-turborepo with reactnative-expo app as a one of the apps in the monorepo when i try to build the react-native app I got this error (expo:49.0.7, react-native:0.72.3) [...
Karam Jabareen's user avatar
1 vote
1 answer
694 views

How to add package from sub-directory of monorepo with yarn

I have a fork of the expo monorepo that has changes in only one of the sub-packages (e.g. expo-speech). I want to import only that sub-package in my application. Given these parameters: GitHub ...
gabe's user avatar
  • 1,911
1 vote
0 answers
146 views

Expo bare workflow monorepo

I have successfully setup managed workflow as a monorepo, but since I needed to add Bluetooth to my project, I had to eject into bare workflow and has been trying to connect back to monorepo with no ...
Bads's user avatar
  • 774
1 vote
1 answer
524 views

how to resolve imports from shared package expo project in a monorepo

I have an import from a shared package of a typescript file inside my mobile package and currently using expo-yarn-workspaces; import { ButtonStyles } from "@org/shared/components/button"; But then ...
HalfWebDev's user avatar
  • 7,410
0 votes
1 answer
2k views

Expo and metro bundler: external module cannot resolve react import

I configured metro.config.js with the extraNodeModules setting so metro will find my shared modules from outside my project (a 'monorepo' configuration). Metro is finding my external module (see dumb-...
Jim B.'s user avatar
  • 4,654
0 votes
0 answers
83 views

Error: Cannot find module 'metro/src/lib/TerminalReporter' when building Expo app in a monorepo

I am encountering an issue when trying to build my Expo app using npx expo run:ios in a Turborepo monorepo setup. The error message I receive is: Error: Cannot find module 'metro/src/lib/...
Adam Sucharda's user avatar
0 votes
1 answer
23 views

Dripsy <> Expo 50

Dripsy is failing to compile on NextJS using Solito and Dripsy after upgrading to Expo 50 SDK This is the error: enter image description here Using external babel configuration from /Users/monafang/...
Mona Fang's user avatar
0 votes
0 answers
29 views

nx monorepo: Unable to resolve module ../../App org/apps/test/node_modules/expo/AppEntry.js

I have my project setup inside a monorepo. The expo version is 49.0.16 and react-native 0.72.10. The commands I execute to make the build are: cd org npm install nx run test:prebuild cd apps/test/ios ...
coder03's user avatar
  • 131
0 votes
0 answers
73 views

Migrate Expo to monorepo cause "Invalid hook call" error

I have an Expo app, created a few years ago and running in production. Today I want to migrate this app in a monorepo, handled with PNPM workspaces, with others app (NestJS, React, ...) sharing the ...
Rémi's user avatar
  • 141
0 votes
1 answer
194 views

Babel issue in Monorepo. React, React Native (Expo 50)

We have a monorepo: NodeJs, React Native, React After upgrading to Expo SDK 50 version we start getting an issue when start frontend server. The frontend server is on React and uses React Native ...
Volodymyr Borysov's user avatar
0 votes
0 answers
142 views

Starting issue using expo of a react native sample from turbo

I have a monorepo react native application sample "turbo-repo" that i created using : npx create-turbo -e with-react-native-web I run the build using the command : npx turbo build Then i ...
azous's user avatar
  • 1
0 votes
0 answers
77 views

How to reuse Icon set with an Expo and Next.js monorepo?

I'm working on a monorepo project with Expo and Next.js, the code is already sharable, but I want to add icons and make it work for both of them while I use the icon set in the shared ui components. I ...
Carlos Saraiva's user avatar
0 votes
0 answers
78 views

react native expo not importing function from NX monorepo packages

I am setting up a NX monorepo containing a package is-even and i have a front end expo react native app calling the function from this package. However, it gives me the error below. Metro has ...
hcu's user avatar
  • 21
0 votes
0 answers
101 views

TypeError: undefined is not an object (evaluating 'store.navigationRef.isReady') expo

I am trying to use expo router in my expo project configured in a nx mono repo. I was able to get the app up and running adding all the necessary configuration. However i keep getting this error ...
SHA's user avatar
  • 131
0 votes
0 answers
223 views

Error Running React Native Skia in Solito Repo: Can't Resolve 'react-native-reanimated/package.json

I'm encountering an issue while trying to run React Native Skia in the Solito repository for both mobile and web. Mobile seems to work fine, but I'm running into a problem on the web platform, which ...
Arjun-Dm's user avatar
0 votes
0 answers
68 views

Monorepo organization npm

I have a monorepo where i store my nestjs app and expo react native app /apps/nestjs /apps/expo package.json this is my main package.json "name": "monorepo", "version&...
danyalutsevich's user avatar
0 votes
2 answers
570 views

EAS build in monorepo failure (Failed to construct transformer: Error: Cannot parse ) Execution failed for task ':app:bundleReleaseJsAndAssets'

Created a new starter template using create-solito-app and then tried to build the project with eas build but the build has failed, the log has been attached. I'm trying this new approach of creating ...
Joseito Fernandes's user avatar
0 votes
1 answer
919 views

How to hot reload a development package in an Expo app example nested folder?

Is it possible to an Expo app example to load a module located in the parent folder AND to see changes in the example app when i rebuild the package (with tsc -w to rebuild on any saved files)? I ...
Guillaume Réan's user avatar