Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Module "@heroicons/react/24/outline" has no exported member 'ChevronUpDownIcon' #850

Closed
podenborg opened this issue Oct 8, 2022 · 1 comment

Comments

@podenborg
Copy link

podenborg commented Oct 8, 2022

I'm trying to use the ChevronUpDownIcon in v2.0.0 (formerly known as the SelectorIcon in v1.0.6), but when I try to import the icon into my React app I get a Typescript error that the icon is not exported from the @heroicons/react/24/outline module.

I get the same error when trying to import the icon from @heroicons/react/24/solid.

This is the only icon I've seen this issue with so far. I believe it might be an issue with the package.

Steps to Reproduce

  • Initialize a new React application
  • Install @heroicons/react@2.0.0
  • Try to import the ChevronUpDownIcon in your app
@thecrypticace
Copy link
Contributor

This is because you need to install the latest version of v2. The ChevronUpDownIcon was added back in v2.0.3. I recommend using the latest tag in NPM which will use a update your package.json to the latest version, use a semver caret, and install it (npm install @heroicons/react@latest).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants