question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error rendering in core.js

See original GitHub issue

Love the library, I agree with all the underlying principals! Having issues (at least in the lite version):

Uncaught (in promise) Error: Expected `string` for value, got `var a = "wat";`

I think this is due to children being an array and being passed directly through? Here’s my usage:

import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light';
import js from 'react-syntax-highlighter/dist/languages/javascript';
import docco from 'react-syntax-highlighter/dist/styles/docco';

registerLanguage('javascript', js);

// render() =>
<SyntaxHighlighter language="javascript" style={docco}>
{ 'var a = "wat";' }
</SyntaxHighlighter>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
conorhastingscommented, Oct 16, 2017

@joelgriffith believe it’s resolved in v5.7.1 , can you confirm?

1reaction
conorhastingscommented, Oct 16, 2017

🆒 ! thanks, I’ll check it out tonight

Read more comments on GitHub >

github_iconTop Results From Across the Web

Iam getting a error while rendering a component in the main ...
Iam getting a error while rendering a component in the main component using react js ; div className="err"> ; link rel="preconnect" href="https:// ...
Read more >
Rendering issue · Issue #43 · jsreport/jsreport-dotnet - GitHub
Dear Developer, I am having this error message during executing the PDF. An unhandled exception occurred while processing the request.
Read more >
pretty-error - npm
PrettyError turns error objects into something similar to an html document, and then uses RenderKid to render the document using simple html/css ...
Read more >
JS Report error when generating pdf in .Net Core
JsReportBinaryException: Error rendering report: starting rendering process..rendering has finished with errors:A critical error occurred ...
Read more >
ASP.NET Core Razor component lifecycle | Microsoft Learn
While a Blazor app is prerendering, certain actions, such as calling into JavaScript (JS interop), aren't possible. Components may need to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found