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

Cannot find file 'ReactRefreshEntry.js' #11818

Closed
jhonnyV-V opened this issue Dec 21, 2021 · 1 comment
Closed

Cannot find file 'ReactRefreshEntry.js' #11818

jhonnyV-V opened this issue Dec 21, 2021 · 1 comment

Comments

@jhonnyV-V
Copy link

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 npm@8.3.0 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'.

@jhonnyV-V
Copy link
Author

Issue solved, the problem was the name of the folder that contains the project folder

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

No branches or pull requests

1 participant