question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.40.2 Error: Cannot find module '{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js'

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
DavidAnsoncommented, Jun 16, 2021

@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.

2reactions
peteraritchiecommented, Aug 1, 2022

For others frustrated that docsmsft.docs-linting does not uninstall this conflicting configuration: Ctrl+Shift+P: Preferences: Open Settings, find and remove:

  "markdownlint.customRules": [
    "{docsmsft.docs-linting}/markdownlint-custom-rules/rules.js"
  ],
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found