facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.24k stars 626 forks source link

Metro server not respecting default config for forwardClientLogs #1306

Open rubenspgcavalcante opened 4 months ago

rubenspgcavalcante commented 4 months ago

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.

alvaropaco commented 3 months ago

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