Skip to content

--reset-cache options broken for React Native CLI #20703

Closed
@rozele

Description

@rozele

Environment

[skip envinfo]

Description

Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.

--reset-cache does not remove the metro-cache, metro-cache-* or haste-map-metro-* files/folders on Windows.

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve

  1. Run react-native bundle command
  2. Open %LOCALAPPDATA%/Temp
  3. See cache files matching patterns created
  4. Run --reset-cache
  5. See cache files were not updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: WindowsBuilding on Windows.Resolution: LockedThis issue was locked by the bot.Resolution: PR SubmittedA pull request with a fix has been provided.Tech: Bundler 📦This issue is related to the bundler (Metro, Haul, etc) used.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions