False Positive: “Target of URI doesn't exist” for valid Flutter import

We are encountering a false positive issue in SonarCloud where a valid Dart import is being flagged as unresolved:

Target of URI doesn't exist: 'package:hectorrail_flutter_da/core/constants/api_endpoints.dart'

However, the referenced file does exist in the project and is correctly structured within the lib/ directory. The import works as expected in the local development environment, and the application builds successfully without any issues.

Please investigate why SonarCloud is unable to resolve valid Dart package imports in this case and advise on any required configuration or fixes.

Hi,

Welcome to the community and thanks for this report!

I’m wondering if this isn’t about the information available to the analysis.

Are you doing one of the preparing the analysis steps described in the docs?

 
Thx,
Ann