thecodingmachine / react-native-boilerplate

A React Native template for building solid applications ๐Ÿ™, using JavaScript ๐Ÿ’› or Typescript ๐Ÿ’™ (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.66k stars 852 forks source link

[BUG]: Failed run project #400

Closed davidas13 closed 7 months ago

davidas13 commented 7 months ago

react-native environment setup

Description

I got error message config Validation Error: "project.ios.automaticPodsInstallation" is not allowed when running project.

error Failed to load configuration of your project.
Config Validation Error: "project.ios.automaticPodsInstallation" is not allowed
    at readConfigFromDisk (../MyApp/node_modules/@react-native-community/cli-config/build/readConfigFromDisk.js:52:11)
    at loadConfig (../MyApp/node_modules/@react-native-community/cli-config/build/loadConfig.js:65:65)
    at setupAndRun (../MyApp/node_modules/@react-native-community/cli/build/index.js:159:39)
    at Object.run (../MyApp/node_modules/@react-native-community/cli/build/index.js:129:11)
    at Object.<anonymous> (../MyApp/node_modules/react-native/cli.js:16:7)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
error Command failed with exit code 1.

Version

4.0.0

Do you use TypeScript?

On which OS this issue appear on?

Desktop OS

Macos

JeremyDolle commented 7 months ago

When did you get this error? Give me the steps to reproduce please.

dolimpio commented 7 months ago

I also have the same error with version 4.0.0

node version 21.4.0

yinpinglai commented 7 months ago

I got the same issue when I was trying to create a new project. What I did as below:

  1. npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate
  2. Answer y for typescript.
  3. Answer n for installing Cocoapods now.
  4. cd "../MyApp" && npx react-native run-ios
Pakile commented 7 months ago

I encountered the same issue. After commenting on the line automaticPodsInstallation: true in the react-native.config.js file, it started working.

yinpinglai commented 7 months ago

Thank you. I could run the project now.

Steps of what I did:

  1. npx react-native@latest init MyApp --template @thecodingmachine/react-native-boilerplate
  2. Answer y for typescript.
  3. Answer n for installing Cocoapods now. (Answered n because I got errors while installing Cocoapods)
  4. cd "./MyApp"
  5. vi ./react-native-config.js and remove the line automaticPodsInstallation: true
  6. npx pod-install
  7. npx react-native run-ios