Closed Windvis closed 3 years ago
ember-cli-babel
includes its own version of babel + babel/preset-env. We can't override that, or tell it to change, so if there's an incompatibility there would be an issue. For instance, if we tried to use a preset-env
that was more recent and required a more recent @babel/core
.
At least, that was my logic. Maybe it would make sense to try to include our own and override ember-cli-babel
somehow.
Oh, I see. Maybe a note in the readme about the required versions would help? And some guidance on how to resolve it? I guess the real solution would be to bump ember-cli-babel itself then?
I'm experimenting with this addon for the ember website redesign project and I noticed that building the app throws the following exception:
npm ls @babel/preset-env
shows the following output:Manually installing
@babel/preset-env
seems to fix the issue, (so I assume updating the transitive dependencies would do so as well).Is there a reason why this addon doesn't list a specific version of
@babel/preset-env
as dependency? I think that would prevent this error, right?