JS package not loading when configured with relative path plugin "./plugin-name.js" defined in .babelrc.js -- "Error: Cannot find module './plugin-name.js'" -- started with @babel/core 7.12.10 #12715
Labels
i: bug
i: needs triage
outdated
A closed issue/PR that is archived due to age. Recommended to make a new issue
Bug Report
Happy to help with follow-up questions and tracking down the issue, but I'm so-so with JS. I'll post a PR if it becomes clear to me what exactly needs to change.
Current behavior
When trying to load modules configured with
@babel/core
7.12.10, with a plugin defined as a relative path in.babelrc.js
, the module does not load.The plugin JS file, defined in
.babelrc.js
as./plugin-name-here.js
, is not resolved properly.Require stack (click to expand):
Input Code
N/A, I think it doesn't matter what the actual code to transpile is.
Expected behavior
The plugin should load and be used without errors (as it did all the way through
@babel/core
7.12.9).Babel Configuration (babel.config.js, .babelrc, package.json#babel, cli command, .eslintrc)
.babelrc.js
Environment
Linux CI Environment
macOS CI Environment
Windows CI Environment
Possible Solution
Not sure.
Additional context
I'm trying to update Atom's
github
package to the latest@babel/core
v7, but this error is stopping me from doing so.The text was updated successfully, but these errors were encountered: