SonarQube exclude symlink loop

Hello,

We are using:

  • SonarQube Enterprise Edition Version 8.2.
  • SonarQube Scanner 4.1.0

We have a react project that we want to analyze with SonarQube scanner. In this react project we have a symlink loop located in examples/node_modules.

We already tried to put the value: **/node_modules/** on sonar.exclusions to exclude everything from node_modules but we still receive an error on that files:

ERROR: Failure during analysis, Node.js command to start eslint-bridge server was not built yet.
java.io.UncheckedIOException: java.nio.file.FileSystemException: C:\path\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project\example\node_modules\project: The name of the file cannot be resolved by the system.

And this warning:

WARN: Not indexing due to symlink loop: C:\path\project\example\node_modules\project

Do you know how I can exclude the node_modules completely?