Skip to content

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

@rosanche

Description

@rosanche

Hi everyone !

I can't launch my website anymore after installing graphql, and graphql-yoga.
I am using the command gatsby develop

Below is the error i get :

⠋ building schema

 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
    [RealVest]/[graphql-compose]/lib/SchemaComposer.js:365:11
  
  - SchemaComposer.js:563 SchemaComposer.addAsComposer
    [RealVest]/[graphql-compose]/lib/SchemaComposer.js:563:27
  
  - schema-composer.js:35 createSchemaComposer
    [RealVest]/[gatsby]/dist/schema/schema-composer.js:35:18
  
  - index.js:135 Object.build
    [RealVest]/[gatsby]/dist/schema/index.js:135:26
  
  - index.js:392 async module.exports
    [RealVest]/[gatsby]/dist/bootstrap/index.js:392:3
  
  - develop.js:439 async module.exports
    [RealVest]/[gatsby]/dist/commands/develop.js:439:7
  
not finished building schema - 0.186s

I update my graphql dependencies at the same level :

npm list graphql           
[email protected] /Users/Romain/Desktop/Programming/RealVest
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │   └── [email protected] 
│ └── [email protected] 
├── [email protected] 
└─┬ [email protected]
  ├─┬ @types/[email protected]
  │ └── [email protected]  deduped
  └── UNMET PEER DEPENDENCY [email protected] 

Gatsby :

  System:
    OS: macOS 10.15.4
    CPU: (4) x64 Intel(R) Core(TM) i5-4258U CPU @ 2.40GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.2.0 - /usr/local/bin/node
    npm: 6.14.5 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 81.0.4044.138
    Safari: 13.1
  npmPackages:
    gatsby: ^2.21.7 => 2.21.39
    gatsby-image: ^2.4.0 => 2.4.4
    gatsby-plugin-manifest: ^2.4.1 => 2.4.5
    gatsby-plugin-offline: ^3.2.0 => 3.2.3
    gatsby-plugin-react-helmet: ^3.3.0 => 3.3.1
    gatsby-plugin-sass: ^2.3.0 => 2.3.1
    gatsby-plugin-sharp: ^2.6.0 => 2.6.5
    gatsby-plugin-typescript: ^2.4.0 => 2.4.2
    gatsby-source-filesystem: ^2.3.0 => 2.3.4
    gatsby-transformer-sharp: ^2.5.0 => 2.5.2
  npmGlobalPackages:
    gatsby-cli: 2.11.17
    gatsby: 2.20.31

I already tried to delete my node_modules and package-lock.json then to run npm install again but it didn't work...

Does anyone have an idea what it could be?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs reproductionThis issue needs a simplified reproduction of the bug for further troubleshooting.topic: GraphQLRelated to Gatsby's GraphQL layertype: question or discussionIssue discussing or asking a question about Gatsby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions