electrode-io / electrode-native

A platform to ease integration&delivery of React Native apps in existing mobile applications
https://native.electrode.io
Other
723 stars 113 forks source link

ern run-android failing as react component not found even babel plugin "module-resolver" is there #1864

Open ashishvista opened 2 years ago

ashishvista commented 2 years ago

Screenshot from 2022-07-01 11-48-50

I have this babel.config.json module.exports = { presets: ['module:metro-react-native-babel-preset'], plugins: [ ['module-resolver', { root: [ './src', ], "alias": { "~": "./src", } }], ], }; ern run-android failing as react component not found even babel plugin "module-resolver" is there. It is getting succes if i tried to generate index.android.bundle with this cmd

/home/rapi_01018/.ern/versions/0.49.1/node_modules/ern-core/node_modules/.bin/react-native bundle --platform android --dev false --entry-file index.js \ --bundle-output /home/rapi_01018/Documents/rapimoney/react-native-library-sample/rapi-miniapp/test/index.bundle \ --assets-dest /home/rapi_01018/Documents/rapimoney/react-native-library-sample/rapi-miniapp/test

but when doing ern run-android failing , its failing issue as in screenshot.