Skip to content

Error: Cannot find module 'chokidar' #79

@covariantcorp

Description

@covariantcorp

Describe the bug
From matlab-ls::stderr in emacs

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

Error: Cannot find module 'chokidar'
Require stack:

  • /usr/local/apps/matlabls/out/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1448:15)
    at defaultResolveImpl (node:internal/modules/cjs/loader:1059:19)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1064:22)
    at Module._load (node:internal/modules/cjs/loader:1234:25)
    at TracingChannel.traceSync (node:diagnostics_channel:328:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:245:24)
    at Module.require (node:internal/modules/cjs/loader:1548:12)
    at require (node:internal/modules/helpers:152:16)
    at Object.chokidar (/usr/local/apps/matlabls/out/index.js:65415:18)
    at webpack_require (/usr/local/apps/matlabls/out/index.js:70880:42) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/usr/local/apps/matlabls/out/index.js' ]
    }

Node.js v24.13.1

Process matlab-ls stderr finished

To Reproduce
Steps to reproduce the behavior:
load a .m file

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Useful Information

  • MATLAB Version: R2025B
  • OS Version: Ubuntu 24.04.4 LTS
  • Language Server Client: emacs
  • Client Version: 30.2

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions