fauna-gql-upload icon indicating copy to clipboard operation
fauna-gql-upload copied to clipboard

stuck on hello world getting started.

Open wweevv-johndpope opened this issue 1 year ago • 1 comments

I was looking at this repo - https://github.com/wweevv-johndpope/programrs.live and subsequently ran into problems using a fresh api key / admin credentials - I created a new empty clean folder did the yarn add ... then ran

yarn fgu init

but get this error TypeError: Cannot set property 'fauna' of undefined

Screen Shot 2022-08-01 at 10 33 54 am (2)

I copy the whole folder fauna into project - but no joy... Screen Shot 2022-08-01 at 10 33 20 am

UPDATE - reading the docs - is it possible to use this without local faunadb? if not - that's ok - but would be helpful to give a docker image that can be turned on easily....

nvm ls -> v14.20.0 v17.9.1 v18.7.0 default -> 14 (-> v14.20.0) iojs -> N/A (default) unstable -> N/A (default) node -> stable (-> v18.7.0) (default) stable -> 18.7 (-> v18.7.0) (default) lts/* -> lts/gallium (-> N/A) lts/argon -> v4.9.1 (-> N/A) lts/boron -> v6.17.1 (-> N/A) lts/carbon -> v8.17.0 (-> N/A) lts/dubnium -> v10.24.1 (-> N/A) lts/erbium -> v12.22.12 (-> N/A) lts/fermium -> v14.20.0 lts/gallium -> v16.16.0 (-> N/A)

change to node 17 - but no joy TypeError: Cannot set properties of undefined (setting 'fauna/schema.gql')

TypeError: Cannot set properties of undefined (setting '/Users/johndpope/Documents/gitWorkspace/test/fauna/schema.gql')

going to proceed to setup https://blog.chjweb.se/set-up-fauna-gql-upload-with-fauna-dev

Screen Shot 2022-08-01 at 10 55 15 am

running all the docker stuff locally - finally succeeds.

wweevv-johndpope avatar Aug 01 '22 00:08 wweevv-johndpope

Hey,

I'm sorry that you had problems setting this up. It is entirely possible to run FGU without a local instance of FaunaDB, you just need to make sure that you select the correct region (or use the auto setting). There also seems to be a bug with the init command that causes it to fail when fauna and fauna-gql-upload is installed before calling it. The init command expects faunadb to be in the dependencies list if it is installed, and fauna-gql-upload to be in the devDependencies list. This is probably what caused your issue with the init command.

I'll look at fixing that.

Plazide avatar Aug 02 '22 15:08 Plazide