gilbsgilbs / babel-plugin-i18next-extract

Babel plugin that statically extracts i18next and react-i18next translation keys.
https://i18next-extract.netlify.com
MIT License
161 stars 37 forks source link

Interface is a reserved word in strict mode #179

Open jahicDario opened 3 years ago

jahicDario commented 3 years ago

Describe the bug

When I run command: npx babel -f ./babel.config.js 'src/*/.{js,jsx,ts,tsx}' I get the following error: interface is a reserved word in strict mode (8:0)

Babel configuration:

module.exports = function(api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: ['i18next-extract']
  };
};

Version of libs "babel-preset-expo": "^8.3.0", "@babel/core": "~7.9.0",