samchon / nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
https://nestia.io/
MIT License
1.71k stars 87 forks source link

Cannot find module 'get-funtion-location' #900

Closed intellectus-rojiwon closed 2 months ago

intellectus-rojiwon commented 2 months ago

Bug Report

A dependency on the get-function-location library exists in @nestia/core > WebSocketAdaptor. However, that library is not specified in the package.json of @nestia/core, which is causing an error "Can not find module get-function-location" in the runtime environment.

I solved the problem by temporarily installing get-function-location into the project. The library is installed by @nestia/sdk, so if I had the @nestia/sdk library installed in the runtime environment, I would not have found this bug. However, @nestia/sdk is a documentation build tool and is suitable for devDependencies, which are deleted with the npm prune --omit=dev command.

In conclusion, you should explicitly require a dependency on get-function-location in the @nestia/core library.

@nestia/core ^3.1.3 @nestia/sdk ^3.1.3

samchon commented 2 months ago

Oops, I've forgotten to add dependency on @nestia/core too.

Will fix it ASAP.

samchon commented 2 months ago

Upgrade to v3.1.4, then be fixed. Thanks for reporting.