Giter Club home page Giter Club logo

graphql-gatsby's People

Contributors

birkir avatar jkjustjoshing avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

graphql-gatsby's Issues

createTypes is not a function

Trying to leverage this project with graphql-codegen, specifically trying to extract the schema without running the gatsby-web stack directly.

When running it appears that some parts of the runtime related to Gatsby schema customization aren't working.

Your plugins must export known APIs from their gatsby-node.js.
The following exports aren't APIs. Perhaps you made a typo or your plugin is outdated?

See https://www.gatsbyjs.org/docs/node-apis/ for the list of Gatsby Node APIs

- The plugin "[email protected]" is exporting a variable named "createSchemaCustomization" which isn't an API.

Perhaps you meant to export "onCreateDevServer"?

- Your site's gatsby-node.js is exporting a variable named "createResolvers" which isn't an API.

Perhaps you meant to export "onCreateDevServer"?

followed by ....

gatsby-node.js returned an error createTypes is not a function

  TypeError: createTypes is not a function
  
  - gatsby-node.js:72 Object.exports.sourceNodes
    /code/gatsby-node.js:72:3
  

Compile failure with dependencies

Manual

> [email protected] start /Users/jamesinnes/my-website/graphql-gatsby/manual
> node server.js

The above error occurred in the <StoreStateProvider> component:
    in StoreStateProvider
    in App

React will try to recreate this component tree from scratch using the error boundary you provided, App.
Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: Cannot find module 'gatsby-cli/lib/reporter'
Require stack:
- /Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js
- /Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/manual/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/server.js'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 7
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jamesinnes/.npm/_logs/2020-02-23T15_53_02_290Z-debug.log
jamesinnes@James-Inness-MacBook-Air manual % 
jamesinnes@James-Inness-MacBook-Air manual % npm run start

> [email protected] start /Users/jamesinnes/my-website/graphql-gatsby/manual
> node server.js

The above error occurred in the <StoreStateProvider> component:
    in StoreStateProvider
    in App

React will try to recreate this component tree from scratch using the error boundary you provided, App.
Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: Cannot find module 'gatsby-cli/lib/reporter'
Require stack:
- /Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js
- /Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/manual/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/gatsby.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/node_modules/graphql-gatsby/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/manual/server.js'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 7
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jamesinnes/.npm/_logs/2020-02-23T15_54_34_604Z-debug.log

Express

> [email protected] start /Users/jamesinnes/my-website/graphql-gatsby/express-middleware
> node server.js

internal/modules/cjs/loader.js:983
  throw err;
  ^

Error: Cannot find module 'core-js/proposals/array-flat-and-flat-map'
Require stack:
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/polyfills/array.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/polyfills/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/@apollographql/apollo-tools/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-core/dist/ApolloServer.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-core/dist/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-express/dist/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/graphql-gatsby-express/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/express-middleware/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/polyfills/array.js:3:1)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/polyfills/array.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/polyfills/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-env/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/@apollographql/apollo-tools/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-core/dist/ApolloServer.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-core/dist/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/apollo-server-express/dist/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/node_modules/graphql-gatsby-express/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/express-middleware/server.js'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jamesinnes/.npm/_logs/2020-02-23T15_54_48_180Z-debug.log

Apollo Server

> [email protected] start /Users/jamesinnes/my-website/graphql-gatsby/apollo
> node server.js

The above error occurred in the <StoreStateProvider> component:
    in StoreStateProvider
    in App

React will try to recreate this component tree from scratch using the error boundary you provided, App.
Warning: App: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.
/Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

Error: Cannot find module 'gatsby-cli/lib/reporter'
Require stack:
- /Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/gatsby.js
- /Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby/apollo/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/gatsby.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/lib/index.js:8:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/gatsby.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/apollo/node_modules/graphql-gatsby/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby/apollo/server.js'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 7
npm ERR! 
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jamesinnes/.npm/_logs/2020-02-23T15_54_29_716Z-debug.log

NEXT.js graphql-gatsby/exmaples/with-next

[email protected] dev /Users/jamesinnes/my-website/graphql-gatsby-with-next
> node server.js

internal/modules/cjs/loader.js:983
  throw err;
  ^

Error: Cannot find module 'core-js/proposals/array-flat-and-flat-map'
Require stack:
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/polyfills/array.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/polyfills/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/@apollographql/apollo-tools/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-core/dist/ApolloServer.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-core/dist/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-express/dist/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/graphql-gatsby-express/lib/index.js
- /Users/jamesinnes/my-website/graphql-gatsby-with-next/server.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/polyfills/array.js:3:1)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/polyfills/array.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/polyfills/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-env/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/@apollographql/apollo-tools/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-core/dist/ApolloServer.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-core/dist/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/apollo-server-express/dist/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/node_modules/graphql-gatsby-express/lib/index.js',
    '/Users/jamesinnes/my-website/graphql-gatsby-with-next/server.js'
  ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `node server.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jamesinnes/.npm/_logs/2020-02-23T16_03_59_919Z-debug.log
jamesinnes@James-Inness-MacBook-Air graphql-gatsby-with-next % 

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.