Skip to content

Unexpected token in JSON at position 0 #426

Open
@canpoyrazoglu

Description

@canpoyrazoglu

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions