Skip to content

Cannot find file 'ReactRefreshEntry.js' #11818

Closed
@jhonnyV-V

Description

@jhonnyV-V

Describe the bug

I have a monorepo that uses lerna, I have 3 projects, one api and two frontends, both frontends uses react and presents the same exact error, this error

marketplace: multi C:/Users/userName/programacion/A Trabajo/readl/node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js C:/Users/userName/programacion/A Trabajo/readl/node_modules/react-dev-utils/webpackHotDevClient.js ./src/index.jsx marketplace: Cannot find file: 'ReactRefreshEntry.js' does not match the corresponding name on disk: 'C:\Users\UserName\programacion\A Trabajo\readl\node_modules\@pmmmwh\react-refresh-webpack-plugin\client\A trabajo'.
I have already tried to reinstall all the project, update the dependencies, creating the folder inside @pmmmwh\react-refresh-webpack-plugin\client where the file is not found and copy and paste the files there, also tried to update, desactivate, uninstall the react devtools as recomended in issue #10242 , #9893 , #9922 , and #10500

Did you try recovering your dependencies?

Yes, version of yarn 1.22.5

Environment

I'm using yarn not npm
Environment Info: current version of create-react-app: 4.0.3 running from C:\Users\userName\AppData\Roaming\npm\node_modules\create-react-app System: OS: Windows 10 10.0.19042 CPU: (4) x64 Intel(R) Core(TM) i3-7020U CPU @ 2.30GHz Binaries: Node: 14.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 7.20.1 - C:\Program Files\nodejs\npm.CMD Browsers: Chrome: Not Found Edge: Spartan (44.19041.1266.0), Chromium (96.0.1054.62) Internet Explorer: 11.0.19041.1202
npmPackages: react: 17.0.2 react-dom: 17.0.2 react-scripts: 4.0.3 npmGlobalPackages: create-react-app: Not Found npm notice npm notice New major version of npm available! 7.20.1 -> 8.3.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.3.0 npm notice Run npm install -g [email protected] to update! npm notice

Steps to reproduce

I can't really reproduce the issue in other projects, but, heres how i do it in mine

1.yarn install
2.lerna bootstrap
3.yarn start

Expected behavior

the project start without errors

Actual behavior

marketplace: multi C:/Users/userName/programacion/A Trabajo/readl/node_modules/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js C:/Users/userName/programacion/A Trabajo/readl/node_modules/react-dev-utils/webpackHotDevClient.js ./src/index.jsx
marketplace: Cannot find file: 'ReactRefreshEntry.js' does not match the corresponding name on disk: 'C:\Users\UserName\programacion\A Trabajo\readl\node_modules@pmmmwh\react-refresh-webpack-plugin\client\A trabajo'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions