[bug/regression] yarn P'n'P failed with @nestjs/graphql v9
See original GitHub issueI’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:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m using @nestjs/graphql 9.0.5 with apollo-server 3.3.0 and they’re working just fine for me
found the problem. For anyone hitting the same issue, install
express
to your app. The error message is incredibly misleading.