[bug] build error occurred if using the version 2.2.0 and the switch component
See original GitHub issueCurrent behaviour
Build error occurred with version 2.2.0:
error: bundling failed: Error: Unable to resolve module `ReactNativeVersion` from `.../node_modules/react-native-paper/src/components/Switch.js`: Module `ReactNativeVersion` does not exist in the Haste module map
It is possible that the problem is in this code: https://github.com/callstack/react-native-paper/commit/4aa7addb87ed129e546974f6ebf6dee549bb4d90
Expected behaviour
A project with react-native-paper build without an error.
Code sample
Screenshots (if applicable)
 
Your Environment
  React Native Environment Info:
    System:
      OS: macOS 10.14
      CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
      Memory: 180.89 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 8.12.0 - /var/folders/k9/4flyk9zs5ds9_qr79mk6mqfr0000gn/T/yarn--1541489863070-0.02963383312171719/node
      Yarn: 1.12.1 - /var/folders/k9/4flyk9zs5ds9_qr79mk6mqfr0000gn/T/yarn--1541489863070-0.02963383312171719/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      @types/react-native: 0.57.7 => 0.57.7 
      react: 16.5.1 => 16.5.1 
      react-native: 0.57.1 => 0.57.1 
      react-native-paper: 2.2.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:5 (3 by maintainers)
 Top Results From Across the Web
Top Results From Across the Web
Encountered “Minified React error” in the production ... - GitHub
Describe the bug Encountered “Minified React error” in the production environment, the dev environment is fine. error: Minified React error ...
Read more >Bug listing with status RESOLVED with resolution FIXED as at ...
doesn't seem to catch -r* version suffixes" status:RESOLVED ... reports the string literal "use" as an error when it's part of a message"...
Read more >Nintendo Switch System Updates and Change History
Performing the system update In most situations, the Nintendo Switch will automatically download the most recent system update while it is connected online. ......
Read more >Maven Could not resolve dependencies, artifacts could not be ...
This error can be reproduced every time I try to build something with maven. Doing mvn dependency:tree, dependency:list, or the usual build package,...
Read more >Found conflicts between different versions of 'assembly' that ...
This error occurs during a build when more than one version of the ... command-line switch), and check the MSBuild log file with...
Read more > Top Related Medium Post
Top Related Medium Post
No results found
 Top Related StackOverflow Question
Top Related StackOverflow Question
No results found
 Troubleshoot Live Code
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free Top Related Reddit Thread
Top Related Reddit Thread
No results found
 Top Related Hackernoon Post
Top Related Hackernoon Post
No results found
 Top Related Tweet
Top Related Tweet
No results found
 Top Related Dev.to Post
Top Related Dev.to Post
No results found
 Top Related Hashnode Post
Top Related Hashnode Post
No results found

Jesus! @MrIceman you must be perfect right? You never commited a bug before? Just wait for the fix! Can’t you live with that?
@tzitziras I don’t what is the package. And it is not there because @satya164 forgot to add it. Just install the previous version,
2.1.3and wait for a fix to then upgrade again 😃