close

[Solved] Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from

Today I am trying to make a release Build for my React Native Project But I am facing the following error: Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from in React-Native. In this Exerror article, We are going to learn about How to reproduce this error and we will discuss All Possible Solutions Lets Get Start with This Article.

How Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from Error Occurs?

I am trying to make a release Build for my React Native Project But I am facing the following error.

Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from

So here I am writing all the possible solutions that I have tried to resolve this error.

How To Solve Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from Error?

  1. How To Solve Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from Error?

    To Solve Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from Error You Just Have to add react-native-reanimated Plugin in Your babel.config.js file. First of all Open Your babel.config.js file and then the Edit plugins section. Just add react-native-reanimated at the bottom of the Plugins Section Just Like this. Please Make Sure Reanimated plugin has to be listed last: plugins: [ …. 'react-native-reanimated/plugin', ], As per the Installation Guide You Will Face, Reanimated 2 failed to create a worklet error So You need to Clear Application's Cache this way. Just run this command. If You are using NPM then run this command: npm start — –reset-cache If You are using Yarn then run this command: yarn start –reset-cache Then run: expo start -c Now, You can Build apk for your project without any error. Your error must be solved. Thank you.

  2. Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from

    To Solve Export namespace should be first transformed by @babel/plugin-proposal-export-namespace-from Error You Just Have to add react-native-reanimated Plugin in Your babel.config.js file. First of all Open Your babel.config.js file and then the Edit plugins section. Just add react-native-reanimated at the bottom of the Plugins Section Just Like this. Please Make Sure Reanimated plugin has to be listed last: plugins: [ …. 'react-native-reanimated/plugin', ], As per the Installation Guide You Will Face, Reanimated 2 failed to create a worklet error So You need to Clear Application's Cache this way. Just run this command. If You are using NPM then run this command: npm start — –reset-cache If You are using Yarn then run this command: yarn start –reset-cache Then run: expo start -c Now, You can Build apk for your project without any error. Your error must be solved. Thank you.

Solution 1: Install react-native-reanimated

You Just Have to add react-native-reanimated Plugin in Your babel.config.js file. First of all Open Your babel.config.js file and then the Edit plugins section. Just add react-native-reanimated at the bottom of the Plugins Section Just Like this. Please Make Sure Reanimated plugin has to be listed last.

module.exports = {
  ....
  plugins: [
    ....
    'react-native-reanimated/plugin',
  ],
};

As per the Installation Guide You Will Face, Reanimated 2 failed to create a worklet error So You need to Clear Application’s Cache this way. Just run this command. If You are using NPM then run this command.

npm start -- --reset-cache

If You are using Yarn then run this command.

yarn start --reset-cache

Then run.

expo start -c

Now, You can Build apk for your project without any error. Your error must be solved. Thank you.

Conclusion

It’s all About this error. I hope We Have solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment