gatsby-auth-starter-aws-amplify
gatsby-auth-starter-aws-amplify copied to clipboard
Fail to start...
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!
I have the same error :neutral_face:
Error: Cannot create as TypeComposer the following value: Date. I have the same error!
Same.
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", }
Same error
So did using Yarn work? I used NPM so maybe should try yarn, cannot see why it should change things?
Yarn works much better on this for some reason.