birkir / graphql-gatsby Goto Github PK
View Code? Open in Web Editor NEWDirect access to Gatsby's GraphQL schema and resolvers without the ecosystem
License: MIT License
Direct access to Gatsby's GraphQL schema and resolvers without the ecosystem
License: MIT License
> [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
> [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
> [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
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 %
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.