Serverless - Syntax error in module 'graphql': SyntaxError
See original GitHub issueI am currently creating a test project to test serverless with apollo-server, while running the command to run serverless-offline the project works standard, but when I perform serverless deploy I am not getting access to the playground … I am getting the error below when running serverless log on function playground.
I am using version 2.
service: test
app: test
tenant: test
plugins:
- serverless-offline
provider:
name: aws
runtime: nodejs6.10
functions:
graphql:
handler: graphql.graphqlHandler
events:
- http:
path: graphql
method: post
cors: true
playground:
handler: graphql.graphqlHandler
events:
- http:
path: playground
method: get
cors: true
Issue Analytics
- State:
- Created 5 years ago
- Comments:5
Top Results From Across the Web
GraphQL gql Syntax Error: Expected Name, found
This error occurs mostly when there are unclosed curly braces or when some fields are not properly defined while calling the query.
Read more >serverless/serverless - Gitter
Basically I have created this Lambda function to connect to a mysql DB using the node package ... Syntax error in module 'handler':...
Read more >Getting Graphql error while doing serverless deploy
I am using serverless appsync plugin and deploying it to my aws account by following Part 03: AWS AppSync: Resolver Mapping Templates ...
Read more >Migrating to Apollo Server 4
Apollo Server 4 takes a different approach to integrations by providing a stable web framework integration API, which includes explicit support for serverless...
Read more >graphqlerror: syntax error: expected name, found "!".
GraphQL gql Syntax Error: Expected Name, found } - Stack Overflow ... Jan 18, 2018 ... This error occurs mostly when there are...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Solved and thank you @webchi
What was the solution here? I’m getting the same error.