GithubHelp home page GithubHelp logo

Comments (13)

micalevisk avatar micalevisk commented on April 26, 2024 2

I believe we just need to remove the hard dep on @nestjs/common@8 at

"@nestjs/common": "^8.0.0",
"@nestjs/core": "^8.0.0",

image

from azure-database.

perpifran avatar perpifran commented on April 26, 2024 2

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?

from azure-database.

EmilEriksen avatar EmilEriksen commented on April 26, 2024 2

I got rid of the error by adding overrides to my package.json:

"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.

from azure-database.

JohnBPG avatar JohnBPG commented on April 26, 2024 1

Any updates on this? I've noticed there is a PR to fix this from July: #725
Using overrides in package.json worked for me too, but I don't see it as a long term solution.

from azure-database.

ErwanBRANCHEREAU avatar ErwanBRANCHEREAU commented on April 26, 2024 1

Hi! Same probleme here. Any update? No response since last message (1 month ago)

from azure-database.

philipp-reich avatar philipp-reich commented on April 26, 2024 1

I run in the same problem. deleting package-lock.json and node_modules doesnt work for me...

any update for this issue?

from azure-database.

manekinekko avatar manekinekko commented on April 26, 2024 1

I am working on upgrading this package. Please follow progress here: #884

from azure-database.

Eugene-Murray avatar Eugene-Murray commented on April 26, 2024

The overrides did not work for me. Any update on the issue?
Thanks

from azure-database.

EmilEriksen avatar EmilEriksen commented on April 26, 2024

@Eugene-Murray Did you try deleting package-lock.json and node_modules and reinstalling? It seems to only work with a fresh install

from azure-database.

atomicleopard avatar atomicleopard commented on April 26, 2024

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

from azure-database.

michaelpoellath avatar michaelpoellath commented on April 26, 2024

I have the same Issue now when I upgrade to v10. A multitude of other issues arose with the overrides workaround due to our mono repo build process. Is there any way I can support here @kamilmysliwiec?

from azure-database.

zhucalvin avatar zhucalvin commented on April 26, 2024

Having the same issue still:

[Nest] 32876 - 2023-10-05, 12:19:02 p.m. LOG [InstanceLoader] AzureCosmosDbModule dependencies initialized +40ms
[Nest] 32876 - 2023-10-05, 12:19:02 p.m. ERROR [ExceptionHandler] 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:

  • Is AzureCosmosDbCoreModule a valid NestJS module?
  • If ModuleRef is a provider, is it part of the current AzureCosmosDbCoreModule?
  • If ModuleRef is exported from a separate @module, is that module imported within AzureCosmosDbCoreModule?
    @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.

Potential solutions:

  • Is AzureCosmosDbCoreModule a valid NestJS module?
  • If ModuleRef is a provider, is it part of the current AzureCosmosDbCoreModule?
  • If ModuleRef is exported from a separate @module, is that module imported within AzureCosmosDbCoreModule?
    @module({
    imports: [ /* the Module containing ModuleRef */ ]
    })

from azure-database.

zhucalvin avatar zhucalvin commented on April 26, 2024

"dependencies": {
"@angular/animations": "~16.2.0",
"@angular/cdk": "^16.2.6",
"@angular/common": "~16.2.0",
"@angular/compiler": "~16.2.0",
"@angular/core": "~16.2.0",
"@angular/forms": "~16.2.0",
"@angular/material": "^16.2.6",
"@angular/platform-browser": "~16.2.0",
"@angular/platform-browser-dynamic": "~16.2.0",
"@angular/router": "~16.2.0",
"@azure/cosmos": "^4.0.0",
"@nestjs/azure-database": "^2.3.0",
"@nestjs/common": "^10.0.2",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "^10.0.2",
"@nestjs/platform-express": "^10.0.2",
"@nx/angular": "16.9.1",
"axios": "^1.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"reflect-metadata": "^0.1.13",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.13.0"
},

from azure-database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.