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.

Error: Cannot find module 'graphql-middleware'

See original GitHub issue

I get Error: Cannot find module 'graphql-middleware' after update graphql-yoga 1.16.2 to higher version any idea?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:21

github_iconTop GitHub Comments

10reactions
marcus-sacommented, Nov 3, 2018

Seems like you should read the docs / changelog.

6reactions
kieusonlamcommented, Nov 2, 2018

Ya, I tried. It lead to another issue

C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\validation.js:24
            throw new MiddlewareError("Type " + type + " exists in middleware but is missing in Schema.");
            ^

Error: Type generator exists in middleware but is missing in Schema.
    at new MiddlewareError (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\validation.js:49:23)
    at C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\validation.js:24:19
    at Array.forEach (<anonymous>)
    at Object.validateMiddleware (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\validation.js:22:29)
    at addMiddlewareToSchema (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\middleware.js:19:40)
    at normalisedMiddlewares.reduceRight.schema (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\middleware.js:57:18)
    at Array.reduceRight (<anonymous>)
    at applyMiddlewareWithOptions (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\middleware.js:55:77)
    at applyMiddleware (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\node_modules\graphql-middleware\dist\middleware.js:84:39)
    at new GraphQLServer (C:\Users\Lenovo\Desktop\prisma-backend\node_modules\graphql-yoga\dist\index.js:116:59)

It did not work like this on 1.16.2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'graphql-middleware' · Issue #478
I get Error: Cannot find module 'graphql-middleware' after update ... Error: Type generator exists in middleware but is missing in Schema.
Read more >
graphql-middleware - npm
Start using graphql-middleware in your project by running `npm i ... There are 188 other projects in the npm registry using graphql-middleware.
Read more >
Apollo=Express GraphQL error, cannot find module graphql
I am trying to set up a graphql express server with apollo, express, typeorm, and graphql, however I am getting this error now...
Read more >
GraphQL Code Libraries, Tools and Services
An extensible GraphQL client with modules for react, caching, request parsing, web workers, websockets and more... The example below installs and initializes ...
Read more >
graphql-upload | Yarn - Package Manager
Middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers....
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