typestack / class-validator

Decorator-based property validation for classes.
MIT License
10.89k stars 786 forks source link

fix: Cannot find namespace 'ValidatorJS' #2478

Closed olehtsyhulov closed 4 months ago

olehtsyhulov commented 4 months ago

Description

Hi! I faced the problem while updating lib versions and wrap class-validator by @nestjs/class-validator (I wrap it because of https://github.com/advisories/GHSA-fj58-h2fr-3pp2) lib versions {"@nestjs/common": "^10.3.3", "@nestjs/core": "^10.3.3", "@nestjs/class-transformer": "^0.4.0", "@nestjs/class-validator": "^0.13.4", "class-transformer": "^0.5.1", "class-validator": "^0.14.1", "typescript": "^5.0.2", } Problem accured when I changed import from class-validator to @nestjs/class-validator Changing skipLibCheck to true - solving errors, but this is not a solution

import {
  IsInt,
  IsOptional,
  IsString,
  Min,
} from '@nestjs/class-validator';

Expected behavior

0 errors and code builds

Actual behavior

image

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.