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

Cannot read 'textColor' of undefined #64

Open
kevinhaube opened this issue May 24, 2022 · 6 comments
Open

Cannot read 'textColor' of undefined #64

kevinhaube opened this issue May 24, 2022 · 6 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@kevinhaube
Copy link

Problem statement

Seems like theme is undefined. This is the error received when trying to use the component:

Screen Shot 2022-05-24 at 3 08 12 PM

<CopyBlock
    text={...}
    language={"typescript"}
    theme={dracula}
    showLineNumbers
    codeBlock
/>
@OlivierArgentieri
Copy link

Same problem here

@kelleymuro
Copy link

Same

@liron-navon
Copy link

same

@rajinwonderland
Copy link
Owner

I've got to update this package lol. I'll try posting a patch release and debug it this weekend.

@rajinwonderland rajinwonderland added help wanted Extra attention is needed bug Something isn't working labels Jul 28, 2022
@songhanpoo
Copy link

songhanpoo commented Sep 25, 2022

same. does anyone know do we need to provide any package for default scenario ?
i saw we need to require to set attribute theme . and we can import list them from "react-code-blocks" and choose it into list from demo site.

import { CopyBlock,atomOneDark } from "react-code-blocks";

<CopyBlock
    text={value.rich_text[0].plain_text}
    language={value.language}
    showLineNumbers={true}
    theme={atomOneDark}
    wrapLines
  />

@AlbumVigintinovem
Copy link

Anyone to solved this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants