Comments (11)
@kshehata thanks for reporting this! I am seeing the same thing on my M1, while other configurations are working just fine. We're investigating.
from realm-template-apps.
Ok, let me know if there's anything I can do on this end to help debug.
from realm-template-apps.
I started with the React Native starter app and then brought things over and now I have something that at least runs in the simulator. Not sure why this works and the repo here doesn't.
https://github.com/kshehata/TodoApp
from realm-template-apps.
@kshehata, can you share the following info?
- Node.js version
- In the failing project, run
npm install -d verbose realm
and copy-paste the results here
This is potentially a problem with Node.js and Realm.js version compatibility. If so, I'd like to let the engineering team know or at least add warnings to the tutorial.
Realm.js had a known issue with Node.js v19, but that should have been addressed a long time ago. v11.5.2 had a fix for it.
from realm-template-apps.
@MongoCaleb, you were on Node.js v20.something, right?
from realm-template-apps.
node --version
tells me v20.3.0
I switched to yarn as npm would just stall on reifying. If I run npm with those options I get:
npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "from" argument must be of type string. Received undefined
from realm-template-apps.
Not sure if this helps, here's what happens if I run yarn:
(base) user@machine react-native.todo.flex % yarn add -d verbose realm
yarn add v1.22.19
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > @realm/[email protected]" has incorrect peer dependency "realm@^11.0.0-rc || ^11.0.0".
warning "@realm/react > [email protected]" has incorrect peer dependency "[email protected]".
warning "@realm/react > react-native > @react-native/[email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "@realm/react > react-native > @react-native/codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning "react-native > react-native-codegen > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
warning " > @react-native-community/[email protected]" has unmet peer dependency "prettier@>=2".
warning "@react-native-community/eslint-config > [email protected]" has unmet peer dependency "prettier@>=2.0.0".
[4/4] 🔨 Building fresh packages...
success Saved lockfile.
success Saved 4 new dependencies.
info Direct dependencies
└─ [email protected]
info All dependencies
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨ Done in 8.60s.
from realm-template-apps.
I can replicate when using Node.js v20.3.0. I'll make sure the engineering team is aware and see if we can come up with a workaround while they're looking into a fix.
from realm-template-apps.
@kshehata, could you try using an older Node.js version (v18.16.0 works for me) to help determine whether the issue is compatibility with Node.js v20.3.0?
from realm-template-apps.
@kshehata, seems like the problem was something in the project's package-lock.json
file. If you delete that and then npm install
, it should work.
I have a PR up to address this with the template app itself.
Thanks for filing this issue!
from realm-template-apps.
I can install the template app locally now when using Node.js v20.3.0. Closing this issue. Let me know if you still experience problems.
from realm-template-apps.
Related Issues (16)
- The react-native template pulled from realm platform does not initiate correctly with xcode 69.5 HOT 2
- the layout ressource is not in the project HOT 1
- Crash on Mac Catalyst (SwiftUI)
- Where is the getUserItems defined? HOT 1
- Call To Function is not passing the arguments HOT 2
- SwiftUI template app unable to maintain connection with flexible sync HOT 2
- .net maui template app HOT 1
- `flutter run macos` fails to build on M1 HOT 1
- Flutter - atlasUrl is missing in config HOT 2
- Realm Prop load error HOT 7
- EMpty template app HOT 3
- SwiftUI project doesn't work in offline mode when upgrading to latest package version. HOT 5
- Android With Kotlin Tutorial HOT 8
- Android todo app doesn't sync and crashes when pressing subscription button HOT 3
- Errors with repo: missing path-browserify,hermes realm init error whenever @realm/react Providers are used HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from realm-template-apps.