Skip to content

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

Description

@lenntt

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions