title: Module importing (C++) --- ERROR "module file mapping invalid"
body: <p>ImageLoader.cpp // ERROR:E3344 module file mapping for 'SafeReleaseM' is invalid</p>
  <pre><code>import  SafeReleaseM;
  import &lt;wincodec.h&gt;;
  import &lt;d2d1.h&gt;;
  
  class ImageLoader{};
  </code></pre>
  <p>SafeReleaseM.ixx</p>
  <pre><code>export module SafeReleaseM;
  
  export template &lt;class T&gt; void SafeRelease(T** type)
  {
      if (*type)
      {
          (*type)-&gt;Release();
          *type = NULL;
      }
  }
  </code></pre>
  <p>I've set the standard to the latest C++ standard and C standard, added my source folder to module dependency directory, enabled scanning for modules.</p>
  <p>In my head, this is a very basic test of modules, am I doing something wrong? I'm new to S.O, so if i should add additional settings information, please do tell.</p>
  <p>EDIT: I am using Visual Studio 2022 Community (msvc)</p>
  <p>EDIT #2: In a separate project, a similar approach worked exporting a template function. Perhaps there is an issue with my project configuration.</p>