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를 잡았기 때문에 워크스페이스를 제대로 만들고 진행해야 한다.
'Node.js' 카테고리의 다른 글
nvm을 이용한 node 버전 관리 (0) | 2023.09.10 |
---|---|
NestJs configModule 적용 (0) | 2023.09.04 |
Promise.allSettled()과 Promise.all() (0) | 2023.08.20 |
javascript에서 상수를 나타낼 때 대문자 변수명을 사용하는 이유 (0) | 2023.08.09 |
정적 팩토리 메서드 (0) | 2023.08.05 |