-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
GeneratePackgageJson missing package #26604
Comments
Hi, If you are using inferred targets with Nest, at the moment we do not have support for it. |
Here is my current project json:
|
I am facing the same problem. We use https://github.com/simov/slugify in our project and all worked fine until the latest update. Is there any way to manually add packages to generated package.json ? |
@DanielStoehr I found a workaround in another issues comment, maybe this can help you as much as it did help me: Just add a package.json in your Nest.js apps root which only contains the missing packages as dependencies. Worked for me |
ok, i will try that. |
I've been doing the same thing, but in the new package.json file, you can just specify the version as
|
I'm having the same issue with the following dependency:
I can work around it by adding the following to the package.json in the app root:
|
I have the same issue with I fixed it by adding |
Is there not currently some way to manually configure the dependencies that need to be included? typeorm uses dynamic loading of dependencies, I checked nx about dynamic loading of dependencies and currently About use * dependencies
{
"name": "aic-api",
"dependencies": {
"pg": "*"
}
} Currently the use of wildcards is not replaced with a specific version after compilation {
"name": "aic-api",
"dependencies": {
"@bull-board/api": "6.5.3",
"@bull-board/express": "6.5.3",
"@bull-board/nestjs": "6.5.3",
"@liaoliaots/nestjs-redis": "10.0.0",
"@nestjs/bullmq": "10.2.3",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/platform-express": "10.4.15",
"@nestjs/schedule": "4.1.2",
"@nestjs/typeorm": "10.0.2",
"@supercharge/request-ip": "1.2.0",
"axios": "1.7.8",
"body-parser": "1.20.3",
"bullmq": "5.34.0",
"cookie-parser": "1.4.7",
"decimal.js": "10.4.3",
"dotenv-expand": "12.0.1",
"express": "4.21.2",
"glob": "11.0.0",
"hash-wasm": "4.12.0",
"ioredis": "5.4.1",
"lodash": "4.17.21",
"luxon": "3.5.0",
"nanoid": "3.3.7",
"nest-commander": "3.15.0",
"nestjs-cls": "4.5.0",
"openai": "4.76.1",
"pg": "*",
"proper-lockfile": "4.1.2",
"reflect-metadata": "0.1.14",
"rxjs": "7.8.1",
"typeorm": "0.3.20",
"uuid": "11.0.3",
"valibot": "1.0.0-beta.7"
},
"main": "main.js"
} Temporary solution:
|
Current Behavior
Hello,
I´m using NX with NestJs and Angular.
Now My NestJS App using typeorm with mssql.
I want to create the packge json over my webpack config:
here is my current package.json of my project:
after build my app the generated package.json is following:
now can can not startup the app because the "mssql" package is missing
Expected Behavior
the mssql package should be included in the generated package json
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: