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

Error: Cannot find module 'core-js' #45

Open
lenntt opened this issue Dec 28, 2021 · 0 comments
Open

Error: Cannot find module 'core-js' #45

lenntt opened this issue Dec 28, 2021 · 0 comments

Comments

@lenntt
Copy link

lenntt commented Dec 28, 2021

Describe the bug
I ran via the instructions to analyze a react app, which failed with the error: "Error: Cannot find module 'core-js'"

To Reproduce
Steps to reproduce the behavior:

  1. yarn global add @code-dependency/cli@0.5.0
  2. `code-dependency --source src
  3. fails with an error (see stack below)

Expected behavior
No error

Environment
node 14.18.0
macos

Additional context
I didn't dig into the details, but globally installing core-js did it for me.
Perhaps it should be a peer dependency?

Stack:

Error: Cannot find module 'core-js'
Require stack:
- /Users/<>/.config/yarn/global/node_modules/@code-dependency/view/lib/application.lib.js
- /Users/<>/.config/yarn/global/node_modules/@code-dependency/cli/dist/index.js
- /Users/<>/.config/yarn/global/node_modules/@code-dependency/cli/bin/code-dependency.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant