'__dirname' is not defined To fix this, add nodejs in environment array of .deepsource.toml

Hi all, thank you for your support.
I got a point like in this title.

'__dirname' is not defined To fix this, add nodejs in environment array of .deepsource.toml. Read more in our documentation https://deepsource.io/docs/analyzer/javascript

Therefore, I have added an [environment] entry to the .deepsource.toml file.

[[analyzers]]
name = "javascript"
enabled = true

  [analyzers.meta]
  environment = [
    "nodejs",
    "browser"
  ]

However, this point has not been resolved.
What should we do?

Hi @shun,

Adding nodejs to environment should not have flagged __dirname as not defined. We are investigating on why it still got flagged, meanwhile, can you please share the repository URL in which this issue was raised? It will help us take a deeper look.

Thanks.

Thank you for your response.
But sorry, we use the enterprize edition of DeepSource, so we cannnot share the repository.

Can I check to see if the configuration file is being applied correctly?