Keep getting this error no matter what I tried installing (babel wise) as I follow other similar reports. this is the stack trace:
error: bundli
It is NOT recommended to install babel globally. It might be that your IDE has recognized your globally installed package and is going based off of that one. Or what is more likely is that you have have packages that conflict with each other. e.g babel-cli conflicts with @babel/cli
While you can install Babel CLI globally on your machine, it's much better to install it locally project by project.
yarn remove global @babel/cli @babel/core
In project directory...
yarn remove babel-cli
yarn add @babel/cli @babel/core @babel/node --dev