Babel-preset-expo does not work with reaction settings and es2015

I am new to JavaScript and react and brand new to respond to native. I am trying to combine a React application and a React Native, the React Native application was created using the "create-react-native-app" command. Thus, it uses babel-preset-expo, while the React application uses reaction and es2015 as presets in the babelrc file. When I try to combine them, responding to my own application gives errors. I read in the Babylonian documents that the order of the tasks matters, I tried to combine them in all possible orders, but he still gives me errors like

"RangeErro: maximum call stack size exceeded" or "createTHREEViewClass.js: Missing class property conversion."

This is the babelrc file:

  {
  "presets": ["babel-preset-expo","react","es2015"],
    "env": {
    "development": {
      "plugins": ["transform-react-jsx-source"]
    }
  }
}

Is babel-preset-expo incompatible with anything else or what am I missing?

+4
source share

Source: https://habr.com/ru/post/1676347/


All Articles