Closed AbhinavRobinson closed 2 years ago
@AbhinavRobinson
Check the version of the library to see if "plane To Class" exists or not, and if you don't, you can lower the library version and use it.
"class-transformer": "^0.4.0",
Also, by checking the class-transformer README, you can confirm that the method exists. Note please.
Got this myself. Seems like they have removed it in 0.4.1
which we get since ^
.
Forcing it to get 0.4.0
solves the issue.
edit: They renamed it to plainToInstance
for what I can tell https://github.com/typestack/class-transformer/pull/992/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
Describe the Bug (버그 설명)
Module '"class-transformer"' has no exported member 'plainToClass'.ts(2305)
Version to Reproduce (현재 사용한 버전)
Latest from npx (as of 25th Nov, 2021)
Steps to Reproduce (재현 순서)
Expected Behavior (예상 동작)
No such linting error should be present
Actual Behavior (실제 동작)
Linting error from typescript, no such exported module plainToClass from class-transformer
Additional Context (추가 사항)
N/A
Capture screen (캡쳐 화면)