Error: Cannot find module 'chokidar'
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- emacs, node.js, typescript
- Domain
- devtools
Research direction
Start by reproducing the failure in Emacs by loading a .m file, then inspect the generated /usr/local/apps/matlabls/out/index.js and its module resolution around the chokidar reference. Done means matlab-ls starts without the MODULE_NOT_FOUND error and the language server continues running.
Written by the indexing model from the issue text.
Description
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🔢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.
- Dominant language
- TypeScript
- Stars
- 125
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mathworks/MATLAB-language-server
-
documentation enhancement
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
mathworks/MATLAB-language-server#27 · 10 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
mathworks/MATLAB-language-server#82 · 1 reaction ·
-
Add progress handler Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mathworks/MATLAB-language-server#81 · 4 comments ·
-
`--matlabLaunchCommandArgs` does not accept value starting with "-" (Not enough arguments following) Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
mathworks/MATLAB-language-server#78 · 8 comments ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mathworks/MATLAB-language-server#76 · 5 comments ·
All issues in mathworks/MATLAB-language-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·