dabit3 / gatsby-auth-starter-aws-amplify

Starter Project with Authentication with Gatsby & AWS Amplify
MIT License
324 stars 401 forks source link

Fail to start... #24

Open kangchals opened 4 years ago

kangchals commented 4 years ago

I tried to use this one but I failed.

The last step gatsby develop it produce below errors

 ERROR

UNHANDLED REJECTION Cannot create as TypeComposer the following value: Date.

  Error: Cannot create as TypeComposer the following value: Date.

  - SchemaComposer.js:365 SchemaComposer.createTempTC
    [gatsby-amplify-auth]/[graphql-compose]/lib/SchemaComposer.js:365:11

  - SchemaComposer.js:563 SchemaComposer.addAsComposer
    [gatsby-amplify-auth]/[graphql-compose]/lib/SchemaComposer.js:563:27

  - schema-composer.js:35 createSchemaComposer
    [gatsby-amplify-auth]/[gatsby]/dist/schema/schema-composer.js:35:18

  - index.js:65 Object.module.exports.build
    [gatsby-amplify-auth]/[gatsby]/dist/schema/index.js:65:26

Can you give me some hint? Thank you!

sonufrienko commented 4 years ago

I have the same error :neutral_face:

arhoy commented 4 years ago

Error: Cannot create as TypeComposer the following value: Date. I have the same error!

weisisheng commented 4 years ago

Same.

jcadcell commented 4 years ago

Apparently this is due to a conflict in the GraphQL dependencies between amplify-api (14.0.0) and gatsby (14.6.0).

I eventually got around this, but I'm not sure which step took care of it. I deleted node_modules and package-lock.json. I tried editing the graphql versions in package-lock.json. I also used yarn install after adding a graphql resolution to the package.json file: "resolutions": { "graphql": "14.6.0", }

marksteven commented 3 years ago

Same error

marksteven commented 3 years ago

So did using Yarn work? I used NPM so maybe should try yarn, cannot see why it should change things?

marksteven commented 3 years ago

Yarn works much better on this for some reason.