`babel-preset-expo` bug: Couldn't find preset "es2015" relative to directory...

*** REPO ***

I am using react-native-web and Phoenix (backend). The two communicate via phoenix-socket.

On web, the app works. In Expo IDE, I get the build error Couldn't find preset "es2015" relative to directory "<PROJECT>/node_modules/phoenix-socket"

If I npm i -S babel-preset-env and append "env" in .babelrc, then I get the bug SyntaxError: <PROJECT>/svg-practice/node_modules/react-native/Libraries/ART/ReactNativeART.js: Missing class properties transform.


Fortunately, phoenix doesn’t have this problem.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.