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

react-devtools report Error: Cannot find module './app' #22959

Closed
smoothdvd opened this issue Dec 15, 2021 · 4 comments · Fixed by #22960
Closed

react-devtools report Error: Cannot find module './app' #22959

smoothdvd opened this issue Dec 15, 2021 · 4 comments · Fixed by #22960

Comments

@smoothdvd
Copy link

smoothdvd commented Dec 15, 2021

react-devtools version: 4.22.0
npm -g install react-devtools
react-devtools

internal/modules/cjs/loader.js:905
  throw err;
  ^

Error: Cannot find module './app'
Require stack:
- /Users/foo/.nvm/versions/node/v14.18.1/lib/node_modules/react-devtools/bin.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.resolve (internal/modules/cjs/helpers.js:99:19)
    at Object.<anonymous> (/Users/foo/.nvm/versions/node/v14.18.1/lib/node_modules/react-devtools/bin.js:32:46)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/foo/.nvm/versions/node/v14.18.1/lib/node_modules/react-devtools/bin.js'
  ]
}
@bvaughn
Copy link
Contributor

bvaughn commented Dec 15, 2021

This was broken because of #22949. My apologies.

@bvaughn
Copy link
Contributor

bvaughn commented Dec 15, 2021

Fix has been published as 4.22.1. Sorry again.

@smoothdvd
Copy link
Author

@bvaughn

react-devtools: 4.22.1

Screen Shot 2021-12-15 at 1 09 33 PM

react-devtools: 4.21 has no problem.

@bvaughn
Copy link
Contributor

bvaughn commented Dec 15, 2021

Thanks for confirming, @smoothdvd.

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

Successfully merging a pull request may close this issue.

3 participants
@smoothdvd @bvaughn and others