My name is Oskar and I'm 23 years old. I'm a Senior React Native Developer at callstack, OSS Contributor, and in my free time a cyclist ๐ด
Feel free to contact me here.
Looks like when I do yarn install on clean project it has some problems with "postinstall" script of shared package:
rimraf dist && tsc
node:internal/modules/cjs/loader:988
throw err;
^
Error: Cannot find module '{path to project}\react-native-monorepo\node_modules\node_modules\rimraf\bin.js'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
error Command failed with exit code 1.
I don't understand why it has double node_modules/node_modules in the path
Followed the docs, but getting this error on iOS and a can't find index.js on Android.
error: Error: Unable to resolve module react-native from /Users/me/projects/monorepo/apps/mobile/index.tsx: react-native could not be found within the project or in these directories:
node_modules
../../node_modules
../../../../../node_modules
3 | */
4 |
5 | import { AppRegistry } from "react-native";
| ^
6 | import App from "./src/pages/App";
7 | import { name as appName } from "./app.json";
8 |
Happens when running 'npx react-native run-ios' from mobile. What could be happening here? yarn install worked fine, and no issues when installing the podfiles. Same issue when following blog instructions from scratch, and from cloning. Is it some M1 architecture issue?
Hey, thanks for the very detailed tutorial about how to setup a monorepo. I'm working on a personal project, just for fun and to improve some skills, and decided to try this monorepo approach so I can share typescript interfaces between mobile and server.
I'm using react-native 0.71.3
and everything is working in development mode.
Today I decided to tried to deploy into my iPhone with a release build configuration, to measure FlatList performance, but I got this error:
File /<path>/Products/Release-iphoneos/RNTest.app/main.jsbundle does not exist.
This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues
Wonder if you ever had this problem whit the most recent version of RN.
It feels like a problem with the monorepo structure and RN not finding the file.
I found some posts from people having this problem with older versions, but a lot of RN build configs changed since then.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.