react-native-debugger icon indicating copy to clipboard operation
react-native-debugger copied to clipboard

Unexpected token in JSON at position 0

Open canpoyrazoglu opened this issue 6 years ago • 0 comments

React Native Debugger app version: 0.10.2 React Native version: 0.61.2 Platform: iOS 11.0.1 Is real device of platform: no (sim) Operating System: macOS 10.15

I'm trying to use the inspector, it works well until I try to inspect a specific view, at which point I always get: VM365:1 Uncaught SyntaxError: Unexpected token in JSON at position 0 at JSON.parse (<anonymous>)...

The inspector goes blank and app falls back to the in-app inspector. The problematic view has some padding expressed as percentages:

        paddingTop: '20%',
        paddingLeft: '14%',
        paddingRight: '10%',

When I remove them, inspector doesn't crash, when I add them back, it crashes again the moment I select that view in inspector, so it's probably related.

canpoyrazoglu avatar Nov 05 '19 15:11 canpoyrazoglu