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 load application after upgrade from 0.1.1 -> 1.0.1

See original GitHub issue

I receive the following error when loading up my React application when using 1.0.1:

Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method oft.

I didn’t change any of my JSX, simply just upgraded the package. Any help on this would be greatly appreciated.

Thanks

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:30 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
Rufflewindcommented, Jul 12, 2016

Here’s an alternative to @davinchia’s solution:

var SimpleDropdown = require('react-simple-dropdown');
var Dropdown = SimpleDropdown.default;
var DropdownTrigger = SimpleDropdown.DropdownTrigger;
var DropdownContent = SimpleDropdown.DropdownContent;
2reactions
davinchiacommented, Jun 24, 2016

Received the same error. It was fixed when I used

import Dropdown, { DropdownTrigger, DropdownContent } from ‘react-simple-dropdown’;

instead of

var Dropdown = require(‘react-simple-dropdown’); var DropdownTrigger = Dropdown.DropdownTrigger; var DropdownContent = Dropdown.DropdownContent;

as on the README.

Not sure why…

Read more comments on GitHub >

github_iconTop Results From Across the Web

My flutter app not able to start after upgrade flutter version ...
My flutter app not able to start after upgrade flutter version. Gradle build failed to produce an .apk file. It's likely that this...
Read more >
Cannot update new version of application with installshield ...
When I build with app version 1.0.0.2, the installation cannot update application. If I change "Product Code" and create a new "Upgrade ......
Read more >
javascript - npm start error with create-react-app - Stack Overflow
It just means something went wrong when dependencies were installed the first time. I suggest doing these three steps: npm install -g npm@latest ......
Read more >
Updating Patched Sur to v1.0.1 on an Unsupported Big Sur Mac
Patched Sur has moved it's GitHub Repo. This video is a step-by-step tutorial on how to Update Patched Sur to v1.0.1 + Update...
Read more >
Upgrading to a new version of Datacap - IBM
Upgrade database schemas, upgrade customized Datacap applications and screen panels. ... You cannot upgrade from a later version to an earlier version.
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