Closed nkpatel0801 closed 1 year ago
This project doesn't use babel. That should be configured in the implementation-end.
You should just be able to install it like this https://babeljs.io/docs/babel-preset-env
Actually that started having more issues such as require not defined
but
babel.config.js
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [["@babel/plugin-proposal-private-methods", { "loose": true }]],
};
};
works fine
error: node_modules/google-translate-api-x/lib/Translator.cjs: /home/nirali/Desktop/farmerAssistantApp/node_modules/google-translate-api-x/lib/Translator.cjs: Class private methods are not enabled. Please add
@babel/plugin-proposal-private-methods
to your configuration.