Skip to content
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

Metro server not respecting default config for forwardClientLogs #1306

Open
rubenspgcavalcante opened this issue Jul 18, 2024 · 1 comment
Open

Comments

@rubenspgcavalcante
Copy link

Already tried

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
No logs being outputted to console where metro process is running, seems the default server.forwardClientLogs (true) is not being respected. Adding explicitly the config

server: { forwardClientLogs: true }

will solve the issue and the logs will flow again, but this warning will start to show up:

● Validation Warning:

  Unknown option "server.forwardClientLogs" with value true was found.
  This is probably a typing mistake. Fixing it will remove this message.

If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
Private source (company app), can't provide it here :(

What is the expected behavior?
The default config work, or if we pass the config forwardClientLogs explicitly, don't have this warning being shown.

Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.

  • Metro v0.80.9, metro-config v0.80.1 with default config being merged from @react-native/metro-config v0.73.5
@alvaropaco
Copy link

It's occuring to me with metro on version 0.80.5 and metro-config 0.80..4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants