Skip to content

Unable to deploy on windows - Schema Creation Status is FAILED #404

@menser-fivetalent

Description

@menser-fivetalent

Have been unable to deploy on windows (currently using gitbash or powershell)

The exact same code is deploying fine using osx.

I have verified that this same behavior is reproducible with the example in this repo and a completely new serverless project adding the bare minimum for serverless-appsync-plugin.

Serverless Error ----------------------------------------

  An error occurred: GraphQlSchema - Schema Creation Status is FAILED with details: Found 1 problem(s) with the schema:
  The operation type 'Query' is not present when resolving type 'query' [@3:1]..
 
  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information ---------------------------
     Operating System:          win32
     Node Version:              14.12.0
     Framework Version:         2.35.0
     Plugin Version:            4.5.3
     SDK Version:               4.2.2
     Components Version:        3.8.3

When comparing the working cloudformation stack template from OSX to the failed template from windows they are identical.

I have tried yarn and npm to install packages. We have been using serverless-appsync-plugin for a while successfully but failing on a new project. I took the node_modules directory off another windows machine on an older project and replaced the one in the new project and it appears to deploy. However, there are so many differences between the two folders that it's taking a long time to track down which is causing the issue.

Attached is a simple project that fails:
serverless-appsync-windows-fail.zip

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