Skip to content

Brand new project fails to build React-hermes #51169

@thompsonnoah

Description

@thompsonnoah

Description

Hello! 👋

When creating a new React Native project on macOS, it fails to build due to some errors in the React-hermes pod. The errors are listed in the screenshot below.

Steps to reproduce

  1. Create a new RN project with npx @react-native-community/cli@latest init AwesomeProject
  2. Install Pods with pod install
  3. Attempt to build with Xcode 16.3

React Native Version

0.79.2

Affected Platforms

Build - MacOS

Output of npx @react-native-community/cli info

System:
  OS: macOS 15.4.1
  CPU: (10) arm64 Apple M1 Pro
  Memory: 121.42 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.14.0
    path: /opt/homebrew/opt/node@22/bin/node
  Yarn:
    version: 1.22.22
    path: /opt/homebrew/opt/node@22/bin/yarn
  npm:
    version: 10.9.2
    path: /opt/homebrew/opt/node@22/bin/npm
  Watchman:
    version: 2025.03.03.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /usr/local/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.4
      - iOS 18.4
      - macOS 15.4
      - tvOS 18.4
      - visionOS 2.4
      - watchOS 11.4
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.3 AI-243.24978.46.2431.13363775
  Xcode:
    version: 16.3/16E140
    path: /usr/bin/xcodebuild
Languages:
  Java: Not Found
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.2
    wanted: 0.79.2
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

Showing Recent Errors Only
CompileC /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/HermesRuntimeSamplingProfileSerializer.o /Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'React-hermes' from project 'Pods')
    cd /Users/u6nthomp/Repos/AwesomeProject/ios/Pods
    
    Using response file: /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp
    
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x c++ -ivfsstatcache /Users/u6nthomp/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-a09501eccf75f892bc376f81961b27ba.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/u6nthomp/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -Wunguarded-availability -index-store-path /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Index.noindex/DataStore @/Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/82b82416624d2658e5098eb0a28c15c5-common-args.resp -DFOLLY_NO_CONFIG -DFOLLY_MOBILE\=1 -DFOLLY_USE_LIBCPP\=1 -DFOLLY_CFG_NO_COROUTINES\=1 -DFOLLY_HAVE_CLOCK_GETTIME\=1 -Wno-comma -Wno-shorten-64-to-32 -Wno-documentation -include /Users/u6nthomp/Repos/AwesomeProject/ios/Pods/Target\ Support\ Files/React-hermes/React-hermes-prefix.pch -MMD -MT dependencies -MF /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/HermesRuntimeSamplingProfileSerializer.d --serialize-diagnostics /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/HermesRuntimeSamplingProfileSerializer.dia -c /Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp -o /Users/u6nthomp/Library/Developer/Xcode/DerivedData/AwesomeProject-gjomwyowebgtdpfhfjieedgidekp/Build/Intermediates.noindex/Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/HermesRuntimeSamplingProfileSerializer.o -index-unit-output-path /Pods.build/Debug-iphoneos/React-hermes.build/Objects-normal/arm64/HermesRuntimeSamplingProfileSerializer.o

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:26:20: error: no member named 'getKind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   26 |   if (hermesFrame->getKind() !=
      |       ~~~~~~~~~~~  ^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:27:63: error: no member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   27 |       hermes::sampling_profiler::ProfileSampleCallStackFrame::Kind::Suspend) {
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:31:24: error: static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame *', which are not related by inheritance, is not allowed
   31 |   auto* suspendFrame = static_cast<
      |                        ^~~~~~~~~~~~
   32 |       hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame*>(
      |       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   33 |       hermesFrame);
      |       ~~~~~~~~~~~~
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:42:24: error: no member named 'getKind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   42 |   switch (hermesFrame->getKind()) {
      |           ~~~~~~~~~~~  ^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:43:66: error: no member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   43 |     case hermes::sampling_profiler::ProfileSampleCallStackFrame::Kind::
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:45:31: error: static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame *', which are not related by inheritance, is not allowed
   45 |       auto* jsFunctionFrame = static_cast<
      |                               ^~~~~~~~~~~~
   46 |           hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame*>(
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   47 |           hermesFrame);
      |           ~~~~~~~~~~~~
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:68:66: error: no member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   68 |     case hermes::sampling_profiler::ProfileSampleCallStackFrame::Kind::
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:71:11: error: static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame *', which are not related by inheritance, is not allowed
   71 |           static_cast<hermes::sampling_profiler::
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |                           ProfileSampleCallStackNativeFunctionFrame*>(
      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |               hermesFrame);
      |               ~~~~~~~~~~~~
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:82:66: error: no member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   82 |     case hermes::sampling_profiler::ProfileSampleCallStackFrame::Kind::
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:84:33: error: static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame *', which are not related by inheritance, is not allowed
   84 |       auto* hostFunctionFrame = static_cast<
      |                                 ^~~~~~~~~~~~
   85 |           hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame*>(
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   86 |           hermesFrame);
      |           ~~~~~~~~~~~~
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:95:66: error: no member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'
   95 |     case hermes::sampling_profiler::ProfileSampleCallStackFrame::Kind::
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:97:28: error: static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame *', which are not related by inheritance, is not allowed
   97 |       auto* suspendFrame = static_cast<
      |                            ^~~~~~~~~~~~
   98 |           hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame*>(
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   99 |           hermesFrame);
      |           ~~~~~~~~~~~~
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:128:44: error: no member named 'getCallStack' in 'facebook::hermes::sampling_profiler::ProfileSample'
  128 |       hermesSampleCallStack = hermesSample.getCallStack();
      |                               ~~~~~~~~~~~~ ^
/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:155:21: error: no member named 'getSamples' in 'facebook::hermes::sampling_profiler::Profile'
  155 |       hermesProfile.getSamples();
      |       ~~~~~~~~~~~~~ ^
14 errors generated.

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:26:20: No member named 'getKind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:27:63: No member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:31:24: Static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame *', which are not related by inheritance, is not allowed

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:42:24: No member named 'getKind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:43:66: No member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:45:31: Static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame *', which are not related by inheritance, is not allowed

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:68:66: No member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:71:11: Static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame *', which are not related by inheritance, is not allowed

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:82:66: No member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:84:33: Static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame *', which are not related by inheritance, is not allowed

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:95:66: No member named 'Kind' in 'std::variant<facebook::hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackNativeFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackHostFunctionFrame, facebook::hermes::sampling_profiler::ProfileSampleCallStackJSFunctionFrame>'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:97:28: Static_cast from 'hermes::sampling_profiler::ProfileSampleCallStackFrame *' (aka 'variant<ProfileSampleCallStackSuspendFrame, ProfileSampleCallStackNativeFunctionFrame, ProfileSampleCallStackHostFunctionFrame, ProfileSampleCallStackJSFunctionFrame> *') to 'hermes::sampling_profiler::ProfileSampleCallStackSuspendFrame *', which are not related by inheritance, is not allowed

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:128:44: No member named 'getCallStack' in 'facebook::hermes::sampling_profiler::ProfileSample'

/Users/u6nthomp/Repos/AwesomeProject/node_modules/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeSamplingProfileSerializer.cpp:155:21: No member named 'getSamples' in 'facebook::hermes::sampling_profiler::Profile'

MANDATORY Reproducer

https://github.com/thompsonnoah/RNSample

Screenshots and Videos

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Triage 🔍StaleThere has been a lack of activity on this issue and it may be closed soon.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions