nestjs / nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
https://nestjs.com
MIT License
67.62k stars 7.62k forks source link

Versions are inconsistent #12858

Closed lsxqer closed 11 months ago

lsxqer commented 11 months ago

Is there an existing issue for this?

Current behavior

@fastify/middie Package dependency "path-to-regexp": "^6.1.0",

@nestjs/platform-fastify Package dependency  "path-to-regexp": "^3.0.2",

@fastify/middie 
const { pathToRegexp } = require('path-to-regexp')

@nestjs/platform-fastify
const pathToRegexp = require('path-to-regexp')

The problems caused If the two dependencies are packaged differently, there will be a package that cannot find the 'pathToRegexp' function All you need to do is update the dependencies of the platform-fast package, e.g. to ^6.1.0

Minimum reproduction code

none

Steps to reproduce

No response

Expected behavior

I'm using docker to pack, but after packaging, there will be no function found, undefined function

Package

Other package

No response

NestJS version

No response

Packages versions

{
    "@fastify/multipart": "^8.0.0",
    "@nestjs/common": "^10.0.0",
    "@nestjs/config": "^3.1.1",
    "@nestjs/core": "^10.0.0",
    "@nestjs/jwt": "^10.2.0",
    "@nestjs/mapped-types": "^2.0.3",
    "@nestjs/platform-express": "^10.0.0",
    "@nestjs/platform-fastify": "^10.2.8",
    "@nestjs/serve-static": "^4.0.0",
    "@nestjs/typeorm": "^10.0.0"
}

Node.js version

v20

In which operating systems have you tested?

Other

No response

kamilmysliwiec commented 11 months ago

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.