Skip to content

Declaration of 'YGValue' must be imported from module 'yoga.yoga.YGNode' before it is required #33815

Description

@destinyxxl

Description

i run a react-navive project, npm install and pod install succeed,when i run the project igot the error

Version

0.67.4

Output of npx react-native info

System:
OS: macOS 10.15.7
CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
Memory: 652.55 MB / 8.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 18.0.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.6.0 - /usr/local/bin/npm
Watchman: 2022.03.21.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.3 - /Users/fengxiaolin/.rvm/rubies/ruby-2.7.4/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.4/12D4e - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.4 => 0.67.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

built framework

Snack, code example, screenshot, or link to a repository

截屏2022-05-12 下午5 42 28

Activity

  1. destinyxxl commented on May 12, 2022

    @destinyxxl
    Author

    i have noticed the issue but my cocoapods version is latest(1.11.3), i tried downgrade cocoapods version to 1.9.1,but i got the error “React need at least 1.10.1”

  2. JB-CHAUVIN commented on Jun 7, 2022

    @JB-CHAUVIN

    I have a similar issue on RC 0.69, don't know if it is related ?
    ```Use of undeclared identifier 'YGValue'``

    iScreen Shoter - 2022-06-07 16:39:46 538
    `

  3. mfik commented on Jun 23, 2022

    @mfik

    As mentioned here #33648 , temporary solution is to add a line in the install / build proccess

    rm -rf node_modules ios/Pods
    yarn
    sed -i -e "s/spec.module_name = 'yoga'/spec.module_name = 'Yoga'/g" node_modules/react-native/ReactCommon/yoga/Yoga.podspec
    npx pod-install
    expo run:ios
    
  4. ph4r05 commented on Jun 23, 2022

    @ph4r05
    Contributor

    I figured that when Obj-C++ is used for given files, error is fixed #33976 (comment)

  5. github-actions commented on Feb 7, 2023

    @github-actions

    This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

  6. added
    StaleThere has been a lack of activity on this issue and it may be closed soon.
    on Feb 7, 2023
  7. github-actions commented on Feb 14, 2023

    @github-actions

    This issue was closed because it has been stalled for 7 days with no activity.

  8. locked as resolved and limited conversation to collaborators on Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Impact: Errors During BuildNeeds: TaskThis issue has been triaged but it does not have an associated taskPlatform: iOSiOS applications.Priority: LowStaleThere has been a lack of activity on this issue and it may be closed soon.Tech: React Native CoreIssue related to the Core of React NativeType: Old ArchitectureFor issues related to the old architecture

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions