Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ashishvista opened this issue Jul 1, 2022 · 0 comments

Comments

@ashishvista
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant