Skip to content

GraphQL example won't run due to use of 'const' on El Capitan and lower #106

@theprogramme

Description

@theprogramme

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions