-
Notifications
You must be signed in to change notification settings - Fork 396
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
gatsby site will not start due to major error #40
Comments
had another few added all dependancies again. 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. |
I'm having same issues. Deleted package-lock.json and node_modules and reinstalled using npm, with no luck. I even installed all peer dependencies manually, no luck. |
I hear you. |
I did get it to work locally, but it will not deploy. I got it working locally by switching to installing with yarn instead of npm. But now it errors out when building the backend when I try to deploy on the Amplify Console. I get an "AccessDenied" error. Still working on this one. |
OK so same as me. |
Can you please maybe send me the log of the errors |
log.txt |
Had a look. All good there but you have On your project If not try in your build on AWS try |
Oh that was in there? That error has been coming and going, but I will give your fix a try for that. |
Hi Nicolas Seems it is very much in the build sequence. Also seems the technicians are currently in the process of updating the Gatsby interface on amplify so there might be some weird experiences over the coming weeks as well so keep in mind. version: 1 |
Using just those build settings, I get both of these errors/warnings in the backend build: (node:1961) UnhandledPromiseRejectionWarning: AccessDenied: Access Denied apollo-upload-client@14.1.2: The engine "node" is incompatible with this module. Expected version "^10.17.0 || ^12.0.0 || >= 13.7.0". Got "10.16.0" However, if I change the build settings to the below. I do not get the above errors, but I do get this error on the FRONTEND build: error Generating JavaScript bundles failed I do have the aws-exports file locally. But it is part of git ignore, and should be generated when building on the console. Build Settings, as discussed here: aws-amplify/amplify-hosting#1087 There are a lot of open and closed issues related to what I'm experiencing, I've been working through then trying the solutions and this is my most recent progress. |
try this for the engines
|
Well I cannot speak to what exactly solved my problem, but I pretty much recreated everything from scratch and now I've had minimal issues getting it running. |
H Nada,
Firstly thanks for the tutorials.
Have gone along on a few of theReact ones and they have been very informative.
Now moving to graphql and hit a wall.
Have tried 3 different times from scratch to install and run this project for amplify but keep getting various errors on gatsby locally after installing project. Will not run.
Initially there was graphql conflict saying 2 versions of grpahql in nodes so cannot start
deleted both present and reinstalled latest.
That error went away
then this that I have been unable to resolve.
Seems to be something with graphql conflicts reading some posts but cannot be sure
Using "gatsby develop" I get the following
success open and validate gatsby-configs - 0.027s
success load plugins - 0.939s
success onPreInit - 0.044s
success initialize cache - 0.025s
success copy gatsby files - 0.045s
success onPreBootstrap - 0.026s
success createSchemaCustomization - 0.008s
success Checking for changed pages - 0.002s
success source and transform nodes - 0.129s
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/marksteven/Documents/sites/mytutorial-app/wildwood/node_modules/graphql-compose/lib/SchemaComposer.js:365:11)
at SchemaComposer.addAsComposer (/Users/mark/Documents/sites/mytutorial-app/wildwood/node_modules/graphql-compose/lib/SchemaComposer.js:563:27)
at createSchemaComposer (/Users/mark/Documents/sites/mytutorial-app/node_modules/gatsby/src/schema/schema-composer.js:16:18)
at build (/Users/mark/Documents/sites/mytutorial-app/node_modules/gatsby/src/schema/index.js:104:26)
at buildSchema (/Users/mark/Documents/sites/mytutorial-app/node_modules/gatsby/src/services/build-schema.ts:19:3)'
Hope this helps
Mark
The text was updated successfully, but these errors were encountered: