Troubleshoot SLDS Linter

If you experience an issue with SLDS Linter, take a look at these common issues and learn how to fix them.

If you ‌select an error or warning in the report, the SARIF viewer doesn’t automatically go to the line of code. In such cases, follow these steps in VS Code.

  1. In the SARIF viewer window, select Locate.
  2. In your File Explorer or code editor, locate the file.
  3. Select the errors in the SARIF viewer to go directly to the relevant line of code.

If the Node.js version is lower than v18.4.0, this error is displayed.

SLDS Linter CLI works best with Node.js version v18.4.0 or later.
We recommend using the latest [Active LTS](https://nodejs.org/en/about/previous-releases) version of Node.js.

To resolve this error, upgrade to the latest Active Long Term Support (LTS) version of Node.js.