Redocly / developer-portal-starter

Starter template for the Redocly developer portal
https://redoc.ly
Other
64 stars 102 forks source link

Can't start dev server - incorrect Gatsby dependency #99

Closed AX-LLaidley closed 3 years ago

AX-LLaidley commented 3 years ago

Since upgrading to the latest version of developer-portal (1.0.0-beta.154), my development server no longer functions. When I run yarn start I get 2 warnings stating warn Plugin gatsby-remark-image-attributes is not compatible with your gatsby version 3.7.2 - It requires gatsby@^2.0.0 and then the process fails with an error:

Missing onError handler for invocation 'building-schema', error was 'Error: Cannot create as TypeComposer the following value:
  Date.'. Stacktrace was 'Error: Cannot create as TypeComposer the following value:
  Date.
    at SchemaComposer.createTempTC (/Users/llaidley/Projects/devportal-trial/node_modules/graphql-compose/lib/SchemaComposer.js:463:11)
    at SchemaComposer.createTC (/Users/llaidley/Projects/devportal-trial/node_modules/graphql-compose/lib/SchemaComposer.js:426:84)
    at SchemaComposer.add (/Users/llaidley/Projects/devportal-trial/node_modules/graphql-compose/lib/SchemaComposer.js:715:21)
    at createSchemaComposer (/Users/llaidley/Projects/devportal-trial/node_modules/@redocly/developer-portal/node_modules/gatsby/src/schema/schema-composer.js:16:18)
    at build (/Users/llaidley/Projects/devportal-trial/node_modules/@redocly/developer-portal/node_modules/gatsby/src/schema/index.js:104:26)
    at buildSchema (/Users/llaidley/Projects/devportal-trial/node_modules/@redocly/developer-portal/node_modules/gatsby/src/services/build-schema.ts:19:3)'

This is followed by the terminal hanging on building schema

For the moment, I'm going to try rolling my repo back to whichever previous version that works. Any chance we can get this fixed asap? Thanks in advance.

RomanHotsiy commented 3 years ago

Should be resolved in beta.155. Apologize for the trouble.

AX-LLaidley commented 3 years ago

I tried upgrading to beta.155, but still getting the same error. The only difference is that I'm no longer seeing the warnings first.

RomanHotsiy commented 3 years ago

We will dig into it, thanks for your response.

RomanHotsiy commented 3 years ago

Should be fixed on beta.156.