hermes: console.log of objects/arrays not working on iOS targets and Flipper
Hello,
I have recently upgraded my react native app to 0.70.1 and noticed that console.logs of objects and arrays do not work properly with Flipper on an iOS Simulator/Device - Android works as expected.
The log for objects and array shows in the console but when the expand icon is pressed nothing happens.
Hermes version: 0.70.1 React Native version (if any): 0.70.1 OS version (if any): macOS 12.6 (intel) XCode: 14 Flipper: 0.166.0 Platform (most likely one of arm64-v8a, armeabi-v7a, x86, x86_64): x86_64
Steps To Reproduce
create a new RN 0.70.1 app and console.log objects or arrays, run on an iOS Simulator.
example
useEffect(() => {
console.clear();
console.log('object', { a: 1 });
console.log('array', [1, 2, 3]);
}, []);
The Problem
iOS https://user-images.githubusercontent.com/5883791/191434982-77a941eb-e1f5-4bc0-8852-d0112a7bcedb.mp4
The Expected Behavior
Android https://user-images.githubusercontent.com/5883791/191435337-48c0b72a-81a3-4769-b252-304c26223c54.mp4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 22 (5 by maintainers)
@mgvictor7 We have a fix in the works that should address the issue. I’ll follow up here when it merges.
We can reproduce this locally and have a fix in progress. Thanks for reporting this!
The issue did not end up being isolated to a specific message (although the most common place it appears is in console log messages), so we are building a fix that will correctly fix it for all instances. We don’t have a concrete ship that for that change right now.
Is there any latest fix for this issue. I’m using Flipper 0.177.0, xcode: 14.2, RN: 0.73 and this issue is unresolved
With flipper 0.173.0, Xcode 14.1, and react native 0.70.4 it now works correctly. Thanks