title: How to solve "can only be default-imported using the 'esModuleInterop' flag" in Visual Studio 2019?
body: <p>I'm upgrading my JavaScript files into TypeScript in Visual Studio 2019, to manage them better.</p>
  
  <p>When I want to import a module from another file, I see squiggly lines complaining that:</p>
  
  <blockquote>
    <p>x can only be default-imported using the 'esModuleInterop' flag</p>
  </blockquote>
  
  <p>How should I solve this?</p>