Trouble finding the correct path to template in custom module and getting the "Unable to find the template" error
If this is a module and not a plugin, you might need to declare your base template directory in the Module's __construct using:

Event::on(View::class, View::EVENT_REGISTER_CP_TEMPLATE_ROOTS, function (craft\events\RegisterTemplateRootsEvent $e) {
    if (is_dir($baseDir = $this-&gt;getBasePath() . DIRECTORY_SEPARATOR . 'templates')) {
        $e-&gt;roots[$this-&gt;id] = $baseDir;
    }
});


See Andrews's article on the subject.