SyntaxHighlighter causing 'Error: Super expression must either be null or a function' with Sanity
Unanswered
Oak saucer gall posted this in #help-forum
Oak saucer gallOP
Hello, I have an
At the moment I get
How am I meant to handle this? Bit confused
async function which gets me a single blog post from Sanity using the slug. I am then trying to use PotableText and react-syntax-highlighter to style the content that comes back from Sanity.At the moment I get
'Error: Super expression must either be null or a function' which from what I have read is expected. I have tried using use client but that does not work with asyncHow am I meant to handle this? Bit confused