Cannot find module 'react-native-paper/babel' when generating production build for android
See original GitHub issueWithout Expo & Using - “react-native”: “0.60.4”, “react-native-paper”: “^3.0.0-alpha.3”,
babel.config.js–
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
env: {
production: {
plugins: ['react-native-paper/babel'],
},
},
};
when trying to generate APK on windows system getting this error. tried on other projects using RN paper “^3.0.0-alpha.3”, got same error
Issue Analytics
- State:
- Created 4 years ago
- Comments:27 (13 by maintainers)
Top Results From Across the Web
Getting Started · React Native Paper
Add react-native-paper/babel to the plugins section in your babel.config.js for production environment. It should look like this: module.exports ...
Read more >Cannot Find Module '@babel/core' react-native
nothing is working. When I do npm install - everything seems to install just fine. When I do react-native run-android it runs through...
Read more >react-native-paper
React Native Paper is the cross-platform UI kit library containing a collection of customizable and production-ready components, ...
Read more >Troubleshooting
If the module points to a local file (i.e. the name of the module starts with ./ ), then it's probably due to...
Read more >Troubleshooting
If you run into issue where executing npm run android on macOS throws the above error, try to run sudo chmod +x android/gradlew...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We released
3.0.0-alpha.5
and successfully build release APK@ripzery @zyxel648 Thanks for the report, we will look into it ASAP