EAS build for android Crash on app launch reanimated

App crashed on launch when running build. aab (Not bundled correctly) when tested in android play console.

Followed all the steps of installing the reanimated-library

App works fine in Expo Go.

eas-cli/3.6.0 darwin-x64 node-v14.17.1

Everything in this thread: on github has been tried without success.

babel.config.js:

module.exports = function (api) {
  api.cache(true);
  return {
    presets: ['babel-preset-expo'],
    plugins: [
      [
        'module-resolver',
        {
          alias: {
            '@': './src',
            assets: './assets',
          },
        },
      ],
      'react-native-reanimated/plugin',
    ],
  };
};

metro.config.js:

const { getDefaultConfig } = require('expo/metro-config');

const config = getDefaultConfig(__dirname);

module.exports = config;

This was solved by doing the following steps in expo 47:

Init a new expo project: run expo init
Migrate all project contents to the new project.
Manually reinstall all dependencies going through each js file´s import.