question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Looks like you removed graphql-relay as a dependency. I see that graphql/types/user.js still references it though:

import {
  GraphQLObjectType,
  GraphQLString,
} from 'graphql';
import {
  globalIdField,
} from 'graphql-relay';

I end up with the following error:

[nodemon] 1.11.0 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting babel-node ./foundation/devServer module.js:471 throw err; ^

Error: Cannot find module ‘graphql-relay’

Is the plan to completely remove all use of relay?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
marc-atcommented, Apr 21, 2017

It doesn’t look it is on the master branch yet. The develop branch from andykenward’s clone has the fix. You can use his repo or just take the fix from https://github.com/andykenward/serverless-graphql-apollo/commit/ca3cbc5c1ffc06519982ed3902a010020259af7d too.

1reaction
geirmancommented, Apr 21, 2017

I’m stuck dead in the water. Here’s what I’ve done…

  1. cloned the repo
  2. $ yarn
  3. $ npm start

And I get this output…

api/config.js file was generated
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node ./foundation/devServer`
module.js:471
    throw err;
    ^

Error: Cannot find module 'graphql-relay'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/dev/serverless-graphql-apollo/graphql/types/user.js:7:1)
    at Module._compile (module.js:570:32)
    at loader (/dev/serverless-graphql-apollo/node_modules/babel-register/lib/node.js:144:5)
    at Object.require.extensions.(anonymous function) [as .js] (/dev/serverless-graphql-apollo/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
[nodemon] app crashed - waiting for file changes before starting..
Read more comments on GitHub >

github_iconTop Results From Across the Web

React Relay
Relay's compiler aggregates and optimizes the data requirements for your entire app, so that they can be efficiently fetched in a single GraphQL...
Read more >
graphql-relay - npm
This is a library to allow the easy creation of Relay-compliant servers using the GraphQL.js reference implementation of a GraphQL server. Build ...
Read more >
graphql-relay - PyPI
GraphQL -relay-py is the Relay library for GraphQL-core. It allows the easy creation of Relay-compliant servers using GraphQL-core. GraphQL-Relay-Py is a Python ...
Read more >
A deep-dive into Relay, the friendly & opinionated GraphQL ...
Relay is a JavaScript framework for declaratively fetching and managing GraphQL data. "Sounds approachable enough," you say? Not so fast.
Read more >
GraphQL with React - Apollo vs Relay overview
optimization: The Relay compiler makes the structural approach actually worth it as it analyzes any GraphQL inside your code during build time ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found