question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module 'react-native-paper/babel' when generating production build for android

See original GitHub issue

Without 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

rn paper issus

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
jayucommented, Sep 11, 2019

We released 3.0.0-alpha.5 and successfully build release APK

2reactions
jayucommented, Sep 10, 2019

@ripzery @zyxel648 Thanks for the report, we will look into it ASAP

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found