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
samprity opened this issue May 18, 2018 · 0 comments
Open

Getting syntax errors #127

samprity opened this issue May 18, 2018 · 0 comments

Comments

@samprity
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant