title: You may need an additional loader to handle the result of these loaders error with CRA
body: <p>I installed a package called &quot;dids&quot;, which I believe contains another package &quot;did-jwt&quot; that is causing this error:</p>
  <pre><code>Module parse failed: Unexpected token (192:53)
  File was processed with these loaders:
   * ./node_modules/babel-loader/lib/index.js
  You may need an additional loader to handle the result of these loaders.
  |     return t.find(e =&gt; {
  |       const r = p(I(e));
  &gt;       return r === i || r === c || e.ethereumAddress?.toLowerCase() === u || e.blockchainAccountId?.split(&quot;@eip155&quot;)?.[0].toLowerCase() === u;
  |     });
  |   }).filter(e =&gt; null != e);
  </code></pre>
  <p>I started looking into webpack, babel, and what goes on behind CRA, since I saw the error was with loaders, babel, and webpack. I'd never looked into the toolchain before since I've only been using React for a bit. I have a better understanding of the problem, but am still confused why its happening, and how to solve it? I looked into running <code>npm run eject</code> but only wish to use that as a last resort.</p>
  <p>My current understanding is that webpack compiles and bundles the JS code, and Babel transpiles the code to transform more modern JS into older JS so its understandable by older browsers. (feel free to correct me on this, my understanding still rusty). Webpack uses loaders while bundling and calls upon loaders to do certain thing, like babel to transpile. But in this case, why can babel not compile this piece of code?</p>
  <p>I also saw this post: <a href="https://stackoverflow.com/questions/63423384/you-may-need-an-additional-loader-to-handle-the-result-of-these-loaders">&quot;You may need an additional loader to handle the result of these loaders.&quot;</a></p>
  <p>Which explains that babel doesn't run on dependencies in the project, only the source code. But it seems that babel lis running on the did-jwt dependency?</p>