Git Product home page Git Product logo

gatsby-plugin-extract-schema's People

Contributors

chrbala avatar damassi avatar halkeye avatar nickymeuleman avatar tdukart avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gatsby-plugin-extract-schema's Issues

With Gatsby v3, introspectionQuery no longer exists within gatsby/graphql

After updating to Gatsby v3, schema.json wasn't being created any longer. After a little digging, it looks like const { introspectionQuery, graphql } = require("gatsby/graphql"); is referencing a string that is no longer being exported from 'gatsby/graphql'.

Looking closer at graphql.js, { GraphQLJSON } no longer contains introspectionQuery in the latest version of graphql-compose

Unexpected token '?' after upgrading from 0.0.5 -> 0.1.0

I receive this error when upgrading. Is it worth just replacing the usages of ?? with || (if falsey check is applicable) to avoid any compiler issues?

  Error:[..]node_modules/gatsby-plugin-extract-schema/gatsby-node.js:13
      const location = options.dest ?? defaultLocation;
                                     ^
  SyntaxError: Unexpected token '?'

Edit: forgot to mention I tried the suggested addition of babel-preset-gatsby in babel config, but that did not help.

Generate stable schema

Right now the schema is not stable, so everytime it runs a new schema is generated. This is an issue when you'd like to check it in in source control.

A solution would be to sort the arrays in the schema.

Support Gatsby 4

This could be as simple as updating peerDependencies to `"gatsby": "^2.0.0 || ^3.0.0 || ^4.0.0".

I haven't tested extensively, but it seems to work fine on my sites after migration to v4, but there's a complaint from both npm and the gatsby build that this plugin doesn't support gatsby 4.

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.