-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing modules after update #1621
Comments
The missing modules are I worked around this by adding the modules as dependencies in my project. I'd prefer not to have these "sub-dependencies" referenced in |
That's actually something that we've been struggling with for a while already. Both packages ( In the past, both libraries were included (auto-installed) by default as they were specified as "optionalDependencies". Now, they are registered as optional "peerDependencies" so their behavior will differ depending on what NPM version (NPM v7 automatically installs peer deps) you use/tsconfig settings you have. We made that change (moved these packages to the Solutions: |
For those (like me) getting errors like
when using |
Thank you. I was able to get things working by setting My |
* refactor(application): ♻️ add AbstractOrderSheetBuilder * build: set tsconfig.skipLibCheck:true - ref: nestjs/graphql#1621 (comment) * feat(application): ✨ add OrderSheetsResolver.createOrderSheet * chore: 🚨 apply prettier resolve #76
My solution is neither a) nor b), I prefer to c) explicitly declare the few missing types over skipping library type checks alltogether, on the other hand I did not run in any import issues with // src/graphql-gateway-type-shim.d.ts
declare module '@apollo/gateway' {
export interface GatewayConfig { }
export interface ServiceEndpointDefinition { }
}
declare module '@apollo/gateway/dist/datasources/types' {
export interface GraphQLDataSource { }
} |
Instead skipLibCheck can be added to tsconfig.json (which is the nestjs default) nestjs/graphql#1621 (comment)
* feat: upgrade nest.js to v8 * feat: upgrade modules * add package-lock.json * fix(logger.service): add setContext * chore: remove ts-morph as it is not necessary. Instead skipLibCheck can be added to tsconfig.json (which is the nestjs default) nestjs/graphql#1621 (comment) * test(did.service, ens.service): fix Logger import Logger import should match the import in the service * feat(controllers): setting version neutral routes to prepare versioning * feat(HttpModule): installed and use nestjs/axios to targuet the depreciated HttpModule Co-authored-by: knzeng-e <[email protected]>
Just in case there's an "issue behind an issue" here for
|
I'm submitting a...
Current behavior
When I update NestJS to the newest version, the @nestjs/graphql can't find some modules during build.
Expected behavior
The project should build.
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: