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.

Console errors in React Native Debug mode

See original GitHub issue

Hi @conorhastings, Apologies for filing multiple issues. As I am really looking forward to integrate this highlighter in my current app.
I am using below versions in my

"react-native-syntax-highlighter": "^2.0.0",
"react-syntax-highlighter": "^7.0.1",

But when running my app under React Native debug mode, the console log is getting flooded with below message

VM651:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1
    at JSON.parse (<anonymous>)
    at prism-core.js:493

Although the highlighter view loads fine, but the console log seems to be bogged down with the error messages. Would be great if this can be fixed.

Thank you again,

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
conorhastingscommented, May 10, 2018

I know it’s been a while, i’ve been busy with a move / new job / but it’s on my todo list for this weekend, thanks for the patience.

1reaction
andrey-sklcommented, Mar 29, 2018

Have the same issue, it really doesn’t let me debugging things

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging - React Native
To debug the JavaScript code in Chrome, select "Debug JS Remotely" from the Developer Menu. This will open a new tab at ...
Read more >
How to do logging in React Native - Stack Overflow
Select 'Debug JS' from your app on the device, and 'Toggle debug console(shift-command-y)' from your view menu on VS Code. You need github.com/ ......
Read more >
Debugging React Native with react-native-debugger
This article will help you learn how to use React Native Debugger and aid you build and debug your app quicker. Check React...
Read more >
Reviewing React Native console logs: Best practices
When anything goes wrong in an app, console.log() is the only statement we use to try and figure out what's wrong in our...
Read more >
React Native Debugger - Stop Using Console Logs - Tutorial
Debugging React Native in VS Code · Flipper - open-source debugging tool developed by Facebook for iOS, Android, and React Native applications.
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