gatsby-auth-starter-aws-amplify icon indicating copy to clipboard operation
gatsby-auth-starter-aws-amplify copied to clipboard

Fail to start...

Open kangchals opened this issue 6 years ago • 7 comments

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!

kangchals avatar Nov 14 '19 08:11 kangchals

I have the same error :neutral_face:

sonufrienko avatar Dec 19 '19 13:12 sonufrienko

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

arhoy avatar Mar 26 '20 23:03 arhoy

Same.

weisisheng avatar Apr 01 '20 06:04 weisisheng

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", }

jcadcell avatar Apr 16 '20 19:04 jcadcell

Same error

marksteven avatar Sep 25 '20 06:09 marksteven

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

marksteven avatar Oct 04 '20 10:10 marksteven

Yarn works much better on this for some reason.

marksteven avatar Oct 12 '20 10:10 marksteven