styled-icons / styled-icons

💅 Popular icon packs like Font Awesome, Material Design, and Octicons, available as React Styled Components
https://styled-icons.dev
MIT License
2.09k stars 62 forks source link

Unhandled Rejection (Error): Cannot create styled-component for component: [object Object] #828

Closed CristianWesleyFront closed 5 years ago

CristianWesleyFront commented 5 years ago

Instalei esse pacote via npm, porem por algum motivo que não consegue identificar essa mensagem de erro aparece, já tentei reinstalar varias vezes , tanto o styledComponents , styledIcons, @types/react , utilizar numa tela apenas o código de teste : import styled from 'styled-components' import {Zap} from 'styled-icons/octicons/Zap'

const RedZap = styled(Zap) color: red;

const App = () =>

porem não funciona, alguém poderia me ajudar :D

jacobwgillespie commented 5 years ago

Can you let me know which version of react and styled-components you are using? If you are able to create an example of the problem as a https://codesandbox.io or GitHub repository, that would be helpful - I would be happy to help!

CristianWesleyFront commented 5 years ago

sorry, but now I realized that my dependence on the styled component was not in the last version of the project, thank you

jacobwgillespie commented 5 years ago

Great, glad you were able to get it to work! 👍