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

Some icons not working #819

Open
aldwinp35 opened this issue Oct 2, 2023 · 9 comments
Open

Some icons not working #819

aldwinp35 opened this issue Oct 2, 2023 · 9 comments

Comments

@aldwinp35
Copy link

aldwinp35 commented Oct 2, 2023

Error when trying to import some Icons

Error when trying to import some icons.
Here's an example of the error message when trying to import TbHeartDollar from Tabler Icons.

Codesandbox React Template:

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.

Vitejs React Environment:

Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-icons_tb.js?v=409876f0' does not provide an export named 'TbHeartDollar'

Expected behavior

My expectation is that it should be able to work with any icon that is shown in the search results.

Minimal sample repository URL

https://codesandbox.io/s/vigorous-dhawan-3wfcq2?file=/src/App.js

Steps To Reproduce

Minimal example to reproduce the error.

import { TbHeartDollar } from "react-icons/tb";

export default function App() {
  return <TbHeartDollar />;
}

Package version

v4.11.0

Relevant log output

No response

Additional context

No response

@aldwinp35 aldwinp35 added the Bug label Oct 2, 2023
@MohcineDev
Copy link

i try it and it's working
tb

@Greg-CS
Copy link

Greg-CS commented Nov 4, 2023

I get the same issue with some of them as well but I only had an error using more than 3 at a time from different themes

@CodeNode21
Copy link

I run into the same issue where a good amount of icons do not render. In my case TbHeartDollar renders in the project I'm working on but icons like HiOutlineViewfinderCircle, or FaSquareGitlab do not.

@RiyaadHossain
Copy link

Same for me as well 😢

@CesarBenavides777
Copy link

Same issue using this import:

import { TbSquareFilled } from "react-icons/tb";

@sebastienbarre
Copy link

sebastienbarre commented May 2, 2024

TbCircleFilled not importable either. I realize that's a lot of icons, but two back-to-back broken releases is unfortunate.

@mixmaker
Copy link

mixmaker commented May 5, 2024

This was working fine in debug, but failed in deployment. I upgraded to 5.2.0 now it fails on debug too
import { TbPlayerTrackPrevFilled } from "react-icons/tb";

@mixmaker
Copy link

mixmaker commented May 5, 2024

Just noticed that no a single filled icon that is imported from import { IconName } from "react-icons/tb";
is usable

@mixmaker
Copy link

mixmaker commented May 5, 2024

uhh.. it's fixed now in github 5.2.1
#fix941
commit
but npm version is not out yet

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

No branches or pull requests

9 participants