You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regarding https://facebook.github.io/metro/docs/en/configuration.html, it should be possible to set resetCache in the metro.config.json. Unfortunately, in react-native/local-cli/server/runServer.js line 64, the config option is overwritten by the command line arguments, without to consider that it's already set in the metro.config.json.
The same count for other options like projectRoot, watchFolders, server.port, maxWorkers ...
Reproducible Demo
In any project, create a metro.config.json with this content:
{
"resetCache": true
}
It will not clear the cache.
The text was updated successfully, but these errors were encountered:
Hey @jens-duttke - thanks so much for reporting this with a reproducible example and pinpointing that the issue lies with the option being overridden by the CLI.
Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: x64 Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
Memory: 5.73 GB / 15.88 GB
Binaries:
npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.2.0.0 AI-181.5540.7.32.5014246
Description
Regarding https://facebook.github.io/metro/docs/en/configuration.html, it should be possible to set
resetCache
in themetro.config.json
. Unfortunately, inreact-native/local-cli/server/runServer.js
line 64, the config option is overwritten by the command line arguments, without to consider that it's already set in themetro.config.json
.The same count for other options like
projectRoot
,watchFolders
,server.port
,maxWorkers
...Reproducible Demo
In any project, create a
metro.config.json
with this content:It will not clear the cache.
The text was updated successfully, but these errors were encountered: