-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Upgrade pretty-format to 29 #45726
Comments
|
|
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days. |
I link the PR fixing this, should we only keep the PR open and close this issue? |
We can keep it open and will close automatically once the linked PR will merge |
Summary: As described in [this issue](facebook/react-native#45726), we had a problem where, at runtime, version v29 instead of v26 was used, so upgrading it is the fastest fix. ## Changelog: [GENERAL] [CHANGED] - Upgrade pretty-format to 29.7.0 <!-- For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests X-link: facebook/react-native#45732 Reviewed By: blakef Differential Revision: D60533197 Pulled By: tdn120 fbshipit-source-id: b83dbfe463971abbf00cfebdcc9e5dd6975de0d8
Summary: As described in [this issue](#45726), we had a problem where, at runtime, version v29 instead of v26 was used, so upgrading it is the fastest fix. ## Changelog: [GENERAL] [CHANGED] - Upgrade pretty-format to 29.7.0 <!-- For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #45732 Test Plan: I use console log in the RN tester app ![image](https://github.com/user-attachments/assets/3e3ab0d1-e32b-4b73-8f00-cbd8f040c5aa) Reviewed By: blakef Differential Revision: D60533197 Pulled By: tdn120 fbshipit-source-id: b83dbfe463971abbf00cfebdcc9e5dd6975de0d8
This was already fixed in 7bc9244 but seems like the PR did not close this one this time |
True thanks for pointing this out @mateoguzmana ! |
Description
For some reason, in our project, at runtime, the react-native code uses the
pretty-format
v29 while the code expects v26.A colleague fixed that by using the below patch, but specifying version 26 in our
package.json
also does the job.In our project, I saw that Jest uses
pretty-format
v29, which is undoubtedly somehow related.Instead of investigating the root cause, I thought upgrading
pretty-format
would be more beneficial. So, I'm entering this issue for that; see this PR.Steps to reproduce
Do a console like
console.log('index.native.js', { myObject: 'myvalue' });
and nothing is outputDo
console.log('index.native.js')
and it is outputReact Native Version
0.73.9
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/facebook/react-native/pull/45732/files
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: