Nest.JS @Inject()가 갑자기 에러로 체크되는 문제
Unable to resolve signature of parameter decorator when called as an expression.
Argument of type 'undefined' is not assignable to parameter of type 'string | symbol'.
위와 같은 에러가 발생하는 이유는 보통 타입스크립트 버전 문제라고 한다. 특히 vscode를 이용할 경우 타입스크립트 버전이 최신으로 유지되는 경우가 있는데, 바로 이때 타입스크립트 버전 문제가 발생한다.
그래서 5.x.x에서 4.9.5로 다운그레이드 하기로 했다.
https://docs.smartface.io/smartface-ide/tips-and-tricks/changing-typescript-version/
Changing Typescript Version | Smartface Docs
Since Smartface supports Typescript and Distribution steps are moved into Appcircle, the output while developing on Smartface IDE and published application might differ, depending on which Typescript version is used on both environment.
docs.smartface.io
위 포스팅을 참고했으며 주의사항으로는 workspace로 path를 잡았기 때문에 워크스페이스를 제대로 만들고 진행해야 한다.