Skip to content
This repository has been archived by the owner on Feb 17, 2022. It is now read-only.

Getting syntax errors  #127

Open
Open
@samprity

Description

I tried to add

const componentExample = 'const foo = function* (x) { const y = yield x + 1;  return y + 2; }';

as codeContext. But I have been getting the following syntax error:

SyntaxError: unknown: Unexpected token (11:16) 9 | render() { 10 | return ( > 11 | const foo = function* (x) { const y = yield x + 1; return y + 2; } | ^ 12 | ); 13 | } 14 | }

Not sure what I am doing wrong. I also tried to use raw loader but doesnt seem to load.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions