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
CosmosDB Error on version 9+ #794
Comments
I believe we just need to remove the hard dep on Lines 36 to 37 in d9abb1f
|
hi, i love nestjs, and its integration with cosmos has been a relief. Will you guys fix the dependencies soon so I can use nestjs@9? |
I got rid of the error by adding overrides to my "overrides": {
"@nestjs/azure-database": {
"@nestjs/common": "^9.1.4",
"@nestjs/core": "^9.1.4"
}
} You may need to delete node_modules, package-lock.json and reinstall. I'm not sure if anything else is broken on v9. |
Any updates on this? I've noticed there is a PR to fix this from July: #725 |
Hi! Same probleme here. Any update? No response since last message (1 month ago) |
The overrides did not work for me. Any update on the issue? |
@Eugene-Murray Did you try deleting |
I run in the same problem. deleting any update for this issue? |
NestJS 10 is out, this issue seems to prevent this library being used with it. I was unable to resolve it with resolutions in package.json |
I have the same Issue now when I upgrade to v10. A multitude of other issues arose with the |
I am working on upgrading this package. Please follow progress here: #884 |
Having the same issue still: [Nest] 32876 - 2023-10-05, 12:19:02 p.m. LOG [InstanceLoader] AzureCosmosDbModule dependencies initialized +40ms Potential solutions:
Error: Nest can't resolve dependencies of the AzureCosmosDbCoreModule (COSMOS_DB_CONNECTION_NAME, ?). Please make sure that the argument ModuleRef at index [1] is available in the AzureCosmosDbCoreModule context. Potential solutions: |
"dependencies": { |
Is there an existing issue for this?
Current behavior
On npm run start:dev getting the following error -
ERROR [ExceptionHandler] Nest can't resolve dependencies of the AzureCosmosDbCoreModule (COSMOS_DB_CONNECTION_NAME, ?)
Others having the same issue - https://stackoverflow.com/questions/73731641/how-to-establish-cosmos-db-database-connection-with-nestjs-v9-0-0
Potential solutions:
@module({
imports: [ /* the Module containing ModuleRef */ ]
})
Error: Nest can't resolve dependencies of the AzureCosmosDbCoreModule (COSMOS_DB_CONNECTION_NAME, ?). Please make sure that the argument ModuleRef at index [1] is available in the AzureCosmosDbCoreModule context.
Minimum reproduction code
node 14 & 16, nestjs/common "^9.0.0"
Steps to reproduce
npm run start:dev
Using cosmos installation -
https://www.learmoreseekmore.com/2022/05/crud-operation-demo-on-nestjs-using-azure-cosmos-db.html
Expected behavior
Fetch data from cosmos db successfully.
Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
9.1.2
Packages versions
Node.js version
16.16.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: