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.

Updating the version from 0.13.3 to 0.13.5 caused the error in console

See original GitHub issue

Updating the version from 0.13.3 to 0.13.5 caused the below error in console:

index.js:1 Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.

react-dom.development.js:26629 Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

Everything should be working fine after version update.

Current Behavior

There is a JS error and code is break.

Steps to Reproduce (for bugs)

  1. Update the version from 0.13.3 to 0.13.5
  2. Run the application
  3. Error in console
<Tabs
        value={tabIndex}
        onChange={onTabChange}
        indicatorColor={colors.primary}
        textColor={colors.primary}
      >
        {items.map(({ label, id, count = 0 }) => (
          <Tab key={id} label={`${t(label)} (${count})`} />
        ))}
      </Tabs>
      <SwipeableViews index={tabIndex} onChangeIndex={updateTabIndex}>
        <div>Tab 1</div>
        <div>Tab 2</div>
        <div>Tab 3</div>
      </SwipeableViews>

Context

Your Environment

Tech Version
react-swipeable-views ^0.13.5
React ^16.12.0
platform
etc

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
himadridevcommented, Jan 23, 2020

Same issue with v0.13.5 as mentioned by @shafaqkazmi, I had to downgrade to v0.13.3 to make it work.

1reaction
theshashivermacommented, Jan 27, 2020

I downgraded it to 0.12.18, although it’s 1 year old, it started working on my machine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to upgrade react-native to latest version - Stack Overflow
With React Native 0.26 and higher, React itself is no longer bundled with React Native. This error seems to be caused by a...
Read more >
NEWS
OTHER NOTES: * Updating dates. installr 0.21.1 (2019-02-09). BUG FIXES: * Fix install.MikTeX * Fix install.Rtools * Fix install.pandoc * ...
Read more >
Changelog - ffizer
Changelog. Version x.y.z-dev. Added. ✨ cli can show the json schema the of the .ffizer.yaml; ✨ (cli) allow to specify value of variables...
Read more >
sbt Reference Manual — Combined Pages
Installing sbt on Linux. Install sbt with cs setup. Follow Install page, and install Scala using Coursier. This should install the latest stable...
Read more >
Version History — LOOT latest documentation - Read the Docs
The Sort Plugins, Update Masterlist, Apply Sorted Load Order and Discard Sorted Load Order toolbar actions have been added to the Game menu...
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