React application is failing on analyze step

on the analyze step I am getting this error in my azure pipeline.

05:22:01.575 ERROR File src/pages/Homepage/Home.page.tsx can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

Attaching the log below.

1. 05:21:43.264 INFO Process project properties (done) | time=16ms

05:21:43.280 INFO Project key: UI-Vite_af562a2e-e06d-4434-8904-6285735d9f1c

05:21:43.282 INFO Base dir: /myagent/_work/7/s

05:21:43.284 INFO Working dir: /myagent/_work/7/s/.scannerwork

05:21:43.303 INFO Load project settings for component key: 'UI-Vite_af562a2e-e06d-4434-8904-6285735d9f1c'

05:21:43.618 INFO Load project settings for component key: 'UI-Vite_af562a2e-e06d-4434-8904-6285735d9f1c' (done) | time=315ms

05:21:43.666 INFO Load project branches

05:21:44.005 INFO Load project branches (done) | time=339ms

05:21:44.008 INFO Load branch configuration

05:21:44.012 INFO Found manual configuration of branch/PR analysis. Skipping automatic configuration.

05:21:44.025 INFO Load branch configuration (done) | time=17ms

05:21:44.080 INFO Load quality profiles

05:21:44.454 INFO Load quality profiles (done) | time=374ms

05:21:44.475 INFO Auto-configuring with CI 'Azure DevOps'

05:21:44.572 INFO Load active rules

05:21:59.536 INFO Load active rules (done) | time=14964ms

05:21:59.548 INFO Load analysis cache

05:21:59.850 INFO Load analysis cache (404) | time=302ms

05:22:00.254 INFO Branch name: feature/950-husky-setup

05:22:00.327 INFO Preprocessing files...

05:22:00.775 INFO 2 languages detected in 78 preprocessed files

05:22:00.778 INFO 0 files ignored because of inclusion/exclusion patterns

05:22:00.779 INFO 0 files ignored because of scm ignore settings

05:22:00.785 INFO Loading plugins for detected languages

05:22:00.787 INFO Load/download plugins

05:22:00.855 INFO Load/download plugins (done) | time=68ms

05:22:01.079 INFO Load project repositories

05:22:01.387 INFO Load project repositories (done) | time=307ms

05:22:01.415 INFO Indexing files...

05:22:01.417 INFO Project configuration:

05:22:01.419 INFO Excluded sources: **/node_modules/**, **/coverage/**, **/dist/**

05:22:01.420 INFO Excluded tests: **/*.test.ts, **/*.test.js

##[error]05:22:01.575 ERROR File src/pages/Homepage/Home.page.tsx can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

05:22:01.575 ERROR File src/pages/Homepage/Home.page.tsx can't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files

05:22:01.924 INFO EXECUTION FAILURE

05:22:01.926 INFO Total time: 25.448s

##[warning]Can't find loc string for key: LIB_ProcessExitCode

##[warning]Error while executing SonarQube:Analyze task: LIB_ProcessExitCode /myagent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/6.3.4/sonar-scanner/bin/sonar-scanner 3

##[error]LIB_ProcessExitCode /myagent/_work/_tasks/SonarQubeAnalyze_6d01813a-9589-4b15-8491-8164aeb38055/6.3.4/sonar-scanner/bin/sonar-scanner 3

Finishing: Analyze SonarQube Results

Hi,

Welcome to the community!

Can you also share your analysis configuration?

 
Thx,
Ann