Giter VIP home page Giter VIP logo

Comments (7)

Spots avatar Spots commented on July 18, 2024

I had this issue and it turned it to be caused because I was trying to use the graphiql gem on an API only rails project.

from graphiql-rails.

borakilicoglu avatar borakilicoglu commented on July 18, 2024

i had a same issue! what is the solution?

from graphiql-rails.

rajeshweinvest avatar rajeshweinvest commented on July 18, 2024

Which middlewares to add ?

from graphiql-rails.

gregology avatar gregology commented on July 18, 2024

I had a play with the graphiql-rails gem. I tried bumping the graphiql version and re ordering the assets with no luck. Then I added a 500ms delay so the assets are all loaded. It's not elegant but it's a temporary fix.

gem 'graphiql-rails', git: 'https://github.com/gregology/graphiql-rails'

from graphiql-rails.

rmosolgo avatar rmosolgo commented on July 18, 2024

Also I just noticed the error trace has turbolinks in it. Does this happen on a direct visit to /graphiql, or only after clicking a link? If it's only from clicking a link, you can see if you can disable turbolinks for that link.

from graphiql-rails.

gregology avatar gregology commented on July 18, 2024

Yes @rmosolgo, that fixed it. I disabled turbolinks in my rails 5.2 app with:

<%= link_to "GraphiQL", '/graphiql', data: { turbolinks: false } %>

Thanks team!

from graphiql-rails.

atainton avatar atainton commented on July 18, 2024

@Spots did you manage to get this working using an API only project?

from graphiql-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.