Cannot read 'textColor' of undefined
See original GitHub issueProblem statement
Seems like theme
is undefined. This is the error received when trying to use the component:

<CopyBlock
text={...}
language={"typescript"}
theme={dracula}
showLineNumbers
codeBlock
/>
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error "Cannot read property 'color' of undefined" - Stack Overflow
To just make it work in your case, try this (note that the ThemeProvider should really be located at the top-level of your...
Read more >Uncaught TypeError: Cannot read property 'color' of undefined ...
The Legend doesn't get rendered and the console shows: Uncaught TypeError: Cannot read property 'color' of undefined styler.js:145.
Read more >Error: Cannot read property 'TextColor' of undefined.
I get this error when an enemy attack me and is tryign to apply a State (Posion to be exact) I am using...
Read more >color - \textcolor is not working - TeX - LaTeX Stack Exchange
Package xcolor Error: Undefined color `BLUE'. I have done some research and added the package xcolor with some arguments \usepackage{xcolor} \ ...
Read more >Cannot set property 'color' of Undefined in JavaScript
The error most commonly occurs when trying to set the color of a DOM element after using the getElementsByClassName method.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Same problem here
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.