-
Notifications
You must be signed in to change notification settings - Fork 208
Fail to start fresh project #817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried on a Macbook Intel chip still failing, but with different errors:
|
It seems to be an issue with ruby on your system. I found this issue which looks related CocoaPods/CocoaPods#12326 |
@maitrungduc1410, @mrousavy, @satya164 FINALLY I figured out this error. There is a zero percent chance that I figure this out without the help of GPT. @maitrungduc1410 I couldn't get nitro's example to build for the life of me (this is part of the reason why I created this issue with Nitro Modules. I tried following the ruby guide that @satya164 suggested and I did everything it said meticulously and I still got the error above when I tried to run The solution for me:
You should then get this error:
![]() Now Steps 13 - 20 are if you want expo in your example app: import { registerRootComponent } from 'expo'; // need to use expo
import App from './src/App';
registerRootComponent(App);
const { getDefaultConfig } = require("@expo/metro-config"); 20: Change your const path = require('path');
const { getConfig } = require('react-native-builder-bob/babel-config');
const pkg = require('../package.json');
const root = path.resolve(__dirname, '..');
module.exports = getConfig(
{
presets: ['babel-preset-expo'],
},
{ root, pkg }
);
TLDR somewhere either in the docs or via automated through the cli, some of these steps need to be automated. Just my 0.02. There is also a small chance that I'm a moron and just did something completely wrong. |
I ran into this issue a lot of times. What I do is, manually do Open the example project in Xcode and build from there instead of using react-native and it works fine |
@niteshbalusu11 I'm sure this works, but you shouldn't have to do this, you should be able to build with react-native. |
Description
Today I just tested creating new project, with Nitro modules.
after the setup up, I run:
error below:
I didn't change anything from the generated project, it's just fresh new
Packages
Selected options
Link to repro
https://github.com/maitrungduc1410/test-nitro
Environment
Macbook M2 Apple chip
The text was updated successfully, but these errors were encountered: