nandorojo / expo-next-react-navigation

⛴ Make Next.js and react-navigation play nicely together with an Expo/React Native Web app.
406 stars 32 forks source link

babel error: Duplicate __self prop found. #47

Closed awitherow closed 3 years ago

awitherow commented 3 years ago

You are most likely using the deprecated transform-react-jsx-self Babel plugin. Both source and self are automatically set when using the automatic runtime. Please remove transform-react-jsx-source and transform-react-jsx-self from your Babel config.

babel.config.js

// @generated: @expo/next-adapter@2.1.5
// Learn more: https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/guides/using-nextjs.md#shared-steps

module.exports = { presets: ["@expo/next-adapter/babel"] };
nandorojo commented 3 years ago

Is this a problem with expo's Babel config?

nandorojo commented 3 years ago

I haven't seen this error before with this package. Is there something in particular this package is doing that causes an error for you?

nandorojo commented 3 years ago

Closing as this is irrelevant.