0.40.2 Error: Cannot find module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'
See original GitHub issueThe docs-linting plugin insert the settings:
"markdownlint.customRules": [
"{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js"
],
The Error output:
ERROR: Exception while linting:
Error: Cannot find module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'
Require stack:
- ~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js
- /usr/share/code/resources/app/out/vs/loader.js
- /usr/share/code/resources/app/out/bootstrap-amd.js
- /usr/share/code/resources/app/out/bootstrap-fork.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1019:15)
at Function.v.resolve (/usr/share/code/resources/app/out/vs/loader.js:4:756)
at e.exports (~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:27:107212)
at w (~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:31:844)
at ~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:31:881
at Array.map (<anonymous>)
at E (~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:31:873)
at T (~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:31:2429)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async L (~/.vscode/extensions/davidanson.vscode-markdownlint-0.40.2/bundle.js:31:5474)
0.40.1 works well.
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Release of 0.1.14 results in reduced responsiveness #912
... Exception while linting with markdownlint-cli2: Error: Cannot find module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js' ...
Read more >How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >Fix a CloudWatch canary that's failing with the error "Cannot ...
zip file of your function and dependencies, then you receive an error. The error message reads: Cannot find module '/opt/nodejs/node_modules/ ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
If you're a developer that works with Node JS and JavaScript libraries and frameworks like React, Vue, and Angular, then you might have ......
Read more >Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mcollier, that extension permanently updates the user configuration to reference its embedded custom rule: https://github.com/microsoft/vscode-docs-authoring/blob/a165fa6862659d7e2cccedf60cd47de73e193b1a/packages/docs-linting/src/controllers/lint-config-controller.ts#L66
If you remove that configuration manually from your user settings, the issue should go away.
For others frustrated that docsmsft.docs-linting does not uninstall this conflicting configuration: Ctrl+Shift+P: Preferences: Open Settings, find and remove: