csandman / chakra-react-select

A Chakra UI themed wrapper for the popular library React Select
https://www.npmjs.com/package/chakra-react-select
MIT License
775 stars 33 forks source link

[BUG] Breaking Change in chakraui/icon #276

Closed elvinvibecartons closed 1 year ago

elvinvibecartons commented 1 year ago

Description

New 3.2.0 release of Chakra UI Icon deprecates default export in favor of named exports. This breaks chakra react select which expects a default export.

chakra-react-select Version

4.7.0

Link to Reproduction

No response

TypeScript?

Steps to reproduce

Run npm update. Chakra-React-Select will update dependency to 3.2.0 and break.

Operating System

Additional Information

No response

csandman commented 1 year ago

Thanks for the heads up, I'll look into getting a fix out on monday!

Naman-Garaaz commented 1 year ago

Yes, We are facing the same issue from last night.

atishay100 commented 1 year ago

I too, am facing the same issue

jonashger commented 1 year ago

@csandman Can you review #277?

Sahil-Rally commented 1 year ago

@csandman Can you pls share till when this will be resolved ?

csandman commented 1 year ago

Sorry for the delay all, a fix is up in v4.7.1! Just so everyone knows, if they run into a future like this in the future, it's easy enough to work around by overriding the package versions that CRS depends on.

For example, you can add this to your package.json:

  "overrides": {
    "chakra-react-select": {
      "@chakra-ui/icon": "3.1.0"
    }
  }

You may need to wipe our your package-lock.json/yarn.lock and node_modules, and reinstall, but it will fix your problem until a fix can be pushed.