Can only bind to modules or module instances

In reply to m_r_m:

The error message you show has identifiers that do not match the code you show.