csandman / chakra-react-select

A Chakra UI themed wrapper for the popular library React Select

Home Page:https://www.npmjs.com/package/chakra-react-select

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

larrysharette opened this issue · comments

Description

chakra-react-select requires @chakra-ui/react: 2.2.1. It breaks on @chakra-ui/react: 2.2.0

chakra-react-select Version

4.0.1

Link to Reproduction

https://codesandbox.io/s/naughty-visvesvaraya-i8b13i?file=/pages/index.tsx

TypeScript?

  • Yes I use TypeScript

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Operating System

  • macOS
  • Windows
  • Linux
  • iOS/iPadOS
  • Android

Additional Information

No response

Thanks for the heads up! Looks like this is happening with any version of Chakra UI under the most recent, 2.2.1. I'm pretty sure I know what's causing it, I'll get a fix out sometime tomorrow.

EDIT: Just saw that you already mentioned the version 2.2.1 part haha, my bad

Sounds great! Yeah I was wondering why I couldn't reproduce it in the code sandbox until I noticed it was on the latest version. So I bumped it back to 2.2.0 which is what I had locally and that's when it popped back up. I'm glad there is a workaround 🙂

Ok I ended up publishing a new version tonight, which I hope doesn't have any other issues. This fix is mainly just reverting a change made in v4.0.0 so it shouldn't have any problems.

Feel free to reopen if you're still having problems!