babel-plugin-replace-import-extension icon indicating copy to clipboard operation
babel-plugin-replace-import-extension copied to clipboard

Plugin unusable with "Reentrant plugin detected"

Open JohnAlbin opened this issue 3 years ago • 0 comments

When following the README.md's usage instructions to compile native Node.js ES Module code into CommonJS, I get the following error:

Error: [BABEL]: Reentrant plugin detected trying to load "./node_modules/babel-plugin-replace-import-extension/src/index.js". This module is not ignored and is trying to load itself while compiling itself, leading to a dependency cycle.

I tried both options for ESM->CJS (with or without @babel/present-env) and got the same error both times.

JohnAlbin avatar Jan 04 '22 01:01 JohnAlbin