Updating the version from 0.13.3 to 0.13.5 caused the error in console
See original GitHub issueUpdating 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)
- Update the version from
0.13.3to0.13.5 - Run the application
- 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:
- Created 4 years ago
- Reactions:8
- Comments:18 (1 by maintainers)
Top 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 >
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 Free
Top 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

Same issue with v0.13.5 as mentioned by @shafaqkazmi, I had to downgrade to v0.13.3 to make it work.
I downgraded it to 0.12.18, although it’s 1 year old, it started working on my machine.