Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

needs babel? #1

Open
cellis opened this issue Jul 29, 2017 · 0 comments
Open

needs babel? #1

cellis opened this issue Jul 29, 2017 · 0 comments

Comments

@cellis
Copy link

cellis commented Jul 29, 2017

$ yarn start

/Users/cameronellis/work/postgraphql-hook-demo/src/mutationHooks/sendEmail.js:7
async function handler (args, result) {
      ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:78:16)
    at Module._compile (module.js:545:28)
    at Object.Module._extensions..js (module.js:582:10)
    at Module.load (module.js:490:32)
    at tryModuleLoad (module.js:449:12)
    at Function.Module._load (module.js:441:3)
    at Module.require (module.js:500:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/cameronellis/work/postgraphql-hook-demo/src/mutationHooks/index.js:2:3)
    at Module._compile (module.js:573:32)

Edit: I know this is super early stuff and you probably didn't expect anyone to find this. I found it in the V4 announcement as I follow postgraphql pretty closely. The npm package postgraphql-hook probably should be transpiled into ES5 in the package and republished.

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

No branches or pull requests

1 participant