Plugin error -There is no class with the name

I have a plugin I built. It worked great in RealBasic. I rebuilt it and put it in the xojo_plugin format and load it in Xojo. It loads and can be seen with the intelisence, but I get the following error when compiling an app using it.

There is no class with the name

Can anyone help?