-
Notifications
You must be signed in to change notification settings - Fork 815
Description
I am reporting an issue in the GraphQL example. After npm run render
an error occurs in relation to the use of const
, apparently due to "strict mode".
Disclaimer: I'm a long way on the design side of the design-dev fence - apologies if this is trivial.
Expected behavior:
A sketch document rendered with live data from a GraphQL API.
Observed behavior:
npm run render
> profile-cards-gql@ render /Users/christianv/Projects/react-sketchapp/examples/profile-cards-graphql
> skpm build --watch --run
🖨 Copied src/manifest.json in 6ms SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode.. Plugin “react-sketchapp: Profile Cards w/ GraphQL”, line 6835: » const SuperInit = (0, _runtime.SuperCall)(NSStringFromSelector("init"), [], { type: "@" });
How to reproduce:
Simply running npm run render
after npm install
Sketch version:
43.2 (although irrelevant to this issue)