Skip to content

needs babel? #1

Open
Open
@cellis

Description

$ 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions