# The base directory of the module does not exist SonarScanner.MSBuild.exe failed with exit code 1

**URL:** <https://community.sonarsource.com/t/the-base-directory-of-the-module-does-not-exist-sonarscanner-msbuild-exe-failed-with-exit-code-1/105744>\
**Category:** SonarQube Cloud\
**Tags:** azuredevops, dotnet, coverage, sonarqube-cloud\
**Created:** [December 9, 2023, 10:23am UTC](https://community.sonarsource.com/t/the-base-directory-of-the-module-does-not-exist-sonarscanner-msbuild-exe-failed-with-exit-code-1/105744 "2023-12-09T10:23:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijay\_K](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/vijay_k/32/50616_2.png) [@Vijay\_K](https://community.sonarsource.com/u/Vijay_K)\
**Post date:** [December 9, 2023, 10:23am UTC](https://community.sonarsource.com/t/the-base-directory-of-the-module-does-not-exist-sonarscanner-msbuild-exe-failed-with-exit-code-1/105744/1 "2023-12-09T10:23:19Z")

</div>

Running a SonarCloudAnalyze in AzureDevops for MSBuild. I’m getting an error where it cannot find a module in `node_modules` directory even though `node_modules` is mentioned in `sonar.exclusions`.  
Tried to include specific CSharp folders and still showing same results.

- ALM used: Azure DevOps

- CI system used: Azure DevOps

- Scanner command used when applicable (private details masked)

- Languages of the repository: CSharp, TypeScript

- SonarCloud project is not public

- Error observed:

```auto
1. ##[error]13:08:16.653 ERROR: Error during SonarScanner execution

13:08:16.653 ERROR: Error during SonarScanner execution

##[error]java.lang.IllegalStateException: The base directory of the module '756F6D64-1B74-8F31-0AD3-5DF83A6F53FA' does not exist: $(build.sourcesDirectory)\APP\WebApp\ClientApp\node_modules\nice-napi\node-addon-api

java.lang.IllegalStateException: The base directory of the module '756F6D64-1B74-8F31-0AD3-5DF83A6F53FA' does not exist: $(build.sourcesDirectory)\APP\WebApp\ClientApp\node_modules\nice-napi\node-addon-api

##[error]at org.sonarsource.scanner.cli.Conf.setModuleBaseDir(Conf.java:195)

at org.sonarsource.scanner.cli.Conf.setModuleBaseDir(Conf.java:195)

##[error]at org.sonarsource.scanner.cli.Conf.loadModuleConfigFile(Conf.java:174)

at org.sonarsource.scanner.cli.Conf.loadModuleConfigFile(Conf.java:174)

##[error]at org.sonarsource.scanner.cli.Conf.loadModulesProperties(Conf.java:152)

at org.sonarsource.scanner.cli.Conf.loadModulesProperties(Conf.java:152)

##[error]at org.sonarsource.scanner.cli.Conf.loadProjectProperties(Conf.java:126)

at org.sonarsource.scanner.cli.Conf.loadProjectProperties(Conf.java:126)

##[error]at org.sonarsource.scanner.cli.Conf.properties(Conf.java:60)

at org.sonarsource.scanner.cli.Conf.properties(Conf.java:60)

##[error]at org.sonarsource.scanner.cli.Main.execute(Main.java:70)

at org.sonarsource.scanner.cli.Main.execute(Main.java:70)

##[error]at org.sonarsource.scanner.cli.Main.main(Main.java:62)

at org.sonarsource.scanner.cli.Main.main(Main.java:62)

Process returned exit code 1

##[error]The SonarScanner did not complete successfully

The SonarScanner did not complete successfully

##[error]13:08:16.7 Post-processing failed. Exit code: 1

13:08:16.7 Post-processing failed. Exit code: 1

##[error]The process 'D:\P2\_work\_tasks\SonarCloudPrepare_14d9cde6-c1da-4d55-aa01-2965cd301255\1.40.2\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe' failed with exit code 1

Finishing: Run SonarCloud Code Analysis for CSharp

```

- Steps to reproduce: Just run the pipeline
- Potential workaround: none of them helped

**Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!**

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [December 13, 2023, 8:47am UTC](https://community.sonarsource.com/t/the-base-directory-of-the-module-does-not-exist-sonarscanner-msbuild-exe-failed-with-exit-code-1/105744/4 "2023-12-13T08:47:50Z")

</div>

Hey there.

That’s pretty odd - have you set any explicit _inclusions_ or other settings in the _.csproj_ files that make up your solution?
