Thank you for your support, Remy.
I have compared the search paths in the settings option and they appear to be the same.
The issue only occurs when I am working on an old project. New programs work ok.
All of my projects are using the Delphi 10.1 version.
I have recently reinstalled Delphi 10.1 on a new computer and migrated all the programs from my old computer.
However, I have made another check and added a new IdSMTP component to an old program, which worked perfectly fine. But when I added the same component to another old program and placed the cursor on the IdSMTP unit in the text, an error message appeared stating that it "cannot resolve unit name 'IdSMTP'".
Sorin