<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/cli</p>
<h3 dir="auto">Input code</h3>
<p dir="auto">Error occurring after installed latest <a href="https://www.npmjs.com/package/@babel/core/v/7.22.0" rel="nofollow">@babel/core</a></p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto">babel.config.js</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">Getting error</p>
<blockquote>
<p dir="auto">Cannot find module '@babel/plugin-proposal-private-property-in-object'</p>
</blockquote>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Babel version: latest (7.22.0)</li>
<li>Node: 16</li>
<li>yarn v1.22.19</li>
<li>Mac OS Venutura / Ubuntu 22.0.4</li>
</ul>
<h3 dir="auto">Possible solution</h3>
<p dir="auto">It's working fine after I installed <code class="notranslate">@babel/plugin-proposal-private-property-in-object</code> .</p>
<p dir="auto"><code class="notranslate">yarn add @babel/plugin-proposal-private-property-in-object --dev</code></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Seems the latest release 7.22.0 has an issue.<br>
It was working properly until few hours ago.</p>
<p dir="auto">Originally from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57024826" data-permission-text="Title is private" data-url="https://github.com/babel/karma-babel-preprocessor/issues/5" data-hovercard-type="issue" data-hovercard-url="/babel/karma-babel-preprocessor/issues/5/hovercard" href="https://github.com/babel/karma-babel-preprocessor/issues/5">babel/karma-babel-preprocessor#5</a></p>
<p dir="auto">With to5Options.moduleIds: true module names are including the entire path. I tried setting the sourceRoot, but then the path was duplicated before the desired module portion.</p>
<p dir="auto">The only way I was able to get just the module portion was to add filenameRelative to the per file options and assign it a function to strip the initial path. I feel like I'm missing something simple over this being a bug. Thoughts?</p>
<p dir="auto">Not sure if this matters, but I am on windows.</p>