Incompatible type for arg no. 1: Got "TPanel", expected "TWebPanel"

The procedure being called is....

procedure adjustPanel(aP: TWebPanel);

The error happens on this line which is calling that procedure

adjustPanel(btnPnl);

...and the parameter being passed in that call is defined as...

btnPnl: TWebPanel;

This is a web core project, there are no TPanel objects defined anywhere, and when compiling the uses clause continues to throw Vcl.StdCtrls, Vcl.Controls in the uses clause of the file that this error is happening on.

Any way to find out why those units are being added and why it keeps thinking there is a TPanel being passed and not a TWebPanel as the component is defined as?

Was working just fine yesterday and not today it starts throwing this issue. Restarted the IDE, but still nothing.

The procedure "adjustPanel" was in a appCustom.pas file, and although the uses clause has the appCustom listed in it and everything looked fine, the appCustom was not a file listed in the Project. After Adding the file to the project, the problem went away. The two VCL units are still being added to the unit, so am assuming some sort of inheritance is causing them to be pulled in. Everything appears to be working.

project units involved in the web application, need to be added to the .dproj for proper processing.