Closed isoaxe closed 3 years ago
It turns out that the issue was being caused by a babel.config
file that I had in place when attempting to resolve this issue via babel
rather than esmify
. Deleting the file resolved the issue.
I have the same issue and I don't have any babel.config file. It seems that this is a dependency of esmify that needs to be installed. Which means that the library is broken by default.
Hey there,
I'm attempting to run Firebase authentication and need to
esmify
some of thenode_modules
that are written in ES6.However, when I run the command I get the following error:
So the
esmify
fileresolve.js
has arequire('browser-resolve')
statement at the top. I tried installingbrowser-resolve
manually as a devDependency but just got a similar error, this time about@babel/preset-env
. But surely these dependencies should be automatically installed?Even when I do install the two modules named in the sequential errors, I still get the following:
Any ideas on what I might be doing wrong here?