Skip to content

Error: Cannot find module @2toad/diff-match-patch/diff_match_patch.js #5

Closed
@JasonPierce

Description

@JasonPierce

Thanks for reporting the below issue @frankkienl:

Error

node:internal/modules/cjs/loader:361
      throw err;
      ^

Error: Cannot find module '/Users/frankbouwens/priv/SOME_PROJECT/node_modules/@2toad/diff-match-patch/diff_match_patch.js'. Please verify that the package.json has a valid "main" entry

Environment

node: v16.14.2
npm: 8.5.0

RCA

Per @frankkienl :

I noticed that the file: diff-match-patch.js is named "diff-match-patch.js" with -'s and the file: package.json#L12 mentions that same file, but with _ instead of -.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions