folkloreinc / laravel-graphql

Facebook GraphQL for Laravel 5. It supports Relay, eloquent models, validation and GraphiQL.
1.76k stars 234 forks source link

GraphQL not working #293

Open mithradantor opened 6 years ago

mithradantor commented 6 years ago

Right after installing GraphQL it wont work on my desktop, but the exact same 1:1 copy will work on any other computer... why?

graphQLFetcher@http://localhost:8000/graphiql:84:24 value@https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.3/graphiql.min.js:1:45916 value@https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.3/graphiql.min.js:1:39247 [6]</a</e.prototype.notifyAll@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:12:7723 close@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:18192 closeAll@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:9577 perform@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:9075 s@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:10988 perform@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:8995 batchedUpdates@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:4148 i@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:23073 _renderNewRootComponent@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:12243 _renderSubtreeIntoContainer@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:13228 render@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:13355 @http://localhost:8000/graphiql:104:13

kikoseijo commented 6 years ago

Any wizards around here?

(At least in the other issue you provided couple more lines)

279

Ometecuthli commented 6 years ago

Cant provide more... did a clean install of Laravel in a new folder. Installed GraphQL (nothing else, just a clean Laravel + GraphQL) and I get this error... been stuck for weeks without a single person giving a single useful tip so yeah... frustrating.

kevinvdburgt commented 6 years ago

Cannot reproduce this issue, can you create a project on git which I can clone to check it out?

Ometecuthli commented 6 years ago

I can tonight, but I guess you wont find much as it is something on my computer. E.g. I pull something from GIT that works fine on both of my laptops. It works fine on my desktop (A) but when I pull it on my other desktop (B) I am stuck with this error. Eventhough it are the exact 1 on 1 same files from A to Z.

I deleted everything I can think about e.g. composer, npm, GIT bash, Python, et cetera. Reinstalled everything and updated it.

Still the same error occurs.

Normally I would just reinstall the computer, but since it is my company computer I cant simply reinstall it. I would lose a lot of data, not to think about me having to backup over 5TB of data lol.

So yeah, GraphQL it self is flawless, best thing ever! but something on my computer is making it "not work" and no one can figure out what :(

Ometecuthli commented 6 years ago

You can download it here: https://gitlab.com/Devbizz/example As said, I personally think you wont find much and I guess its related to something on my computer but who knows ^^

Thanks for your time so far, really appreciate it!

shbumba commented 6 years ago

@Devbizz , @mithradantor run php artisan config:cache it works for me. Laravel does not automatically update the configuration cache for graphql.php

Ometecuthli commented 6 years ago

@shbumba I tried it but no effect unfortunately. The minute I open GraphiQL I see this error:

graphQLFetcher@http://localhost:8000/graphiql:84:24
value@https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.3/graphiql.min.js:1:45916
value@https://cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.3/graphiql.min.js:1:39247
[6]</a</e.prototype.notifyAll@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:12:7723
close@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:18192
closeAll@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:9577
perform@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:9075
s@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:10988
perform@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:15:8995
batchedUpdates@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:4148
i@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:23073
_renderNewRootComponent@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:12243
_renderSubtreeIntoContainer@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:13228
render@https://cdnjs.cloudflare.com/ajax/libs/react/15.5.4/react-dom.min.js:14:13355
@http://localhost:8000/graphiql:104:13
kikoseijo commented 6 years ago

Why dont you try if it works with relay playground. you haves same OS, same browser?

your issue its environmental, i don't think its to do with this package.