SonarLint displays a misleading alert message in IntelliJ about Node.js being required

Hello folks!

I hope you are doing well.

I use IntelliJ and I have:

  • 1 project in JavaScript.
  • 1 extra module in TypeScript.

When I work on a file from the TypeScript module, I see this:

Screenshot 2021-02-10 at 15.53.23

This is curious since Node.js is configured in both IntelliJ:

And in the SonarLint plugin: (just to be sure)

Even more curious, when I check the logs, I see that the issue has nothing to do with the Node.js version:

Screenshot 2021-02-17 at 10.21.53

:arrow_right: Could we have a message related to the real error?

Some info just for you:

  • macOS 10.16
  • IntelliJ IDEA 2020.3.1 (Ultimate Edition) Build #IU-203.6682.168
  • Runtime version: x86_64
  • SonarLint, same with

Let me know if you need anything else.

Cheers :kissing_heart: !


Hey @Siegfried, good to see you here! And thank you for your report.

We got several reports of similar behavior in VSCode and we are planning a fix to at least make sure that the Node-related popup only shows when there is an actual issue with Node :sweat_smile:.

We know that the resolution of tsconfig.json can be problematic in some cases. As suggested in this other thread, maybe you can use the sonar.typescript.tsconfigPath property in Settings > Tools > SonarLint > Project Settings > Analysis properties, to force the TS analyzer to use the right one for your project(s).


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.