Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to start... #24

Open
kangchals opened this issue Nov 14, 2019 · 7 comments
Open

Fail to start... #24

kangchals opened this issue Nov 14, 2019 · 7 comments

Comments

@kangchals
Copy link

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
Copy link

I have the same error 😐

@arhoy
Copy link

arhoy commented Mar 26, 2020

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

@weisisheng
Copy link

Same.

@jcadcell
Copy link

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
Copy link

Same error

@marksteven
Copy link

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

@marksteven
Copy link

Yarn works much better on this for some reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants