<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">babel-loader (webpack)</p>
<h3 dir="auto">Input code</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">Application build has started breaking with @babel/types@7.21.0, works fine on reverting to @babel/types@7.20.7</p>
<p dir="auto">[object Object]<br>
at isModuleDeclaration ( node_modules/@babel/types/lib/validators/generated/index.js:3939:11)<br>
at PluginPass.Program ( node_modules/babel-plugin-lodash/lib/index.js:102:44)<br>
at newFn ( node_modules/@babel/traverse/lib/visitors.js:148:21)<br>
at NodePath._call ( node_modules/@babel/traverse/lib/path/context.js:45:20)<br>
at NodePath.call ( node_modules/@babel/traverse/lib/path/context.js:35:17)<br>
at NodePath.visit ( node_modules/@babel/traverse/lib/path/context.js:80:31)<br>
at TraversalContext.visitQueue ( node_modules/@babel/traverse/lib/context.js:86:16)<br>
at TraversalContext.visitSingle ( node_modules/@babel/traverse/lib/context.js:65:19)<br>
at TraversalContext.visit ( node_modules/@babel/traverse/lib/context.js:109:19)<br>
at traverseNode ( node_modules/@babel/traverse/lib/traverse-node.js:18:17)<br>
at traverse ( node_modules/@babel/traverse/lib/index.js:49:34)<br>
at transformFile ( node_modules/@babel/core/lib/transformation/index.js:81:29)<br>
at transformFile.next (:null:null)<br>
at run ( node_modules/@babel/core/lib/transformation/index.js:24:12)<br>
at run.next (:null:null)<br>
at transform ( node_modules/@babel/core/lib/transform.js:22:41)<br>
at transform.next (:null:null)<br>
at step ( node_modules/gensync/index.js:261:32)<br>
at  node_modules/gensync/index.js:273:13<br>
at async.call.result.err.err ( node_modules/gensync/index.js:223:11)</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Babel version [7.21.0]</li>
</ul>
<h3 dir="auto">Possible solution</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/20358391/220269773-94d0257f-4ebf-4671-8750-27ef621c9ad4.png"><img width="1137" alt="image" src="https://user-images.githubusercontent.com/20358391/220269773-94d0257f-4ebf-4671-8750-27ef621c9ad4.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1492649843" data-permission-text="Title is private" data-url="https://github.com/babel/babel/issues/15266" data-hovercard-type="pull_request" data-hovercard-url="/babel/babel/pull/15266/hovercard" href="https://github.com/babel/babel/pull/15266">babel/babel#15266</a></p>
<p dir="auto"><code class="notranslate">@babel/types</code> v7.21.0, <code class="notranslate">isModuleDeclaration</code> has been deprecated, the terminal has the following warning.</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Trace: `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration`."><pre class="notranslate">Trace: <span class="pl-s"><span class="pl-pds">`</span>isModuleDeclaration<span class="pl-pds">`</span></span> has been deprecated, please migrate to <span class="pl-s"><span class="pl-pds">`</span>isImportOrExportDeclaration<span class="pl-pds">`</span></span>.</pre></div>