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.

[bug/regression] yarn P'n'P failed with @nestjs/graphql v9

See original GitHub issue

I’m submitting a…


[x] Regression 
[ ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

The latest @nestjs/graphql v9 does not work with yarn v2 pnp. it throws error:

ERROR [PackageLoader] The "apollo-server-express" package is missing. Please, make sure to install this library ($ npm install apollo-server-express) to take advantage of GraphQLModule.

Expected behavior

No error

Minimal reproduction of the problem with instructions

https://github.com/onichandame/nestjs-graphql-v9-failure-demo

Workaround

Roll back to @nestjs/graphql v8 with apollo server v2

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
david-golightly-leapyearcommented, Oct 1, 2021

I’m using @nestjs/graphql 9.0.5 with apollo-server 3.3.0 and they’re working just fine for me

0reactions
onichandamecommented, Oct 9, 2021

found the problem. For anyone hitting the same issue, install express to your app. The error message is incredibly misleading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: @nestjs/apollo and tslib (Yarn PnP + Workspaces) #2111
Error : @nestjs/apollo tried to access tslib, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound. Note: ......
Read more >
@nestjs/graphql | Yarn - Package Manager
A progressive Node.js framework for building efficient and scalable server-side applications. NPM Version Package License NPM Downloads CircleCI Coverage ...
Read more >
[bug/regression] yarn P'n'P failed with @nestjs/graphql v9 - Codesti
The latest @nestjs/graphql v9 does not work with yarn v2 pnp. it throws error: ERROR [PackageLoader] The "apollo-server-express" package is missing.
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