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.

[bug] build error occurred if using the version 2.2.0 and the switch component

See original GitHub issue

Current 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

Snack example

Screenshots (if applicable)

screenshot 2018-11-06 at 08 36 15

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:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
luissmgcommented, Nov 6, 2018

Jesus! @MrIceman you must be perfect right? You never commited a bug before? Just wait for the fix! Can’t you live with that?

2reactions
luissmgcommented, Nov 6, 2018

@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.3 and wait for a fix to then upgrade again 😃

Read more comments on GitHub >

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

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