Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot find module './util/assertString'" since 13.12.0 #2407

Open
lijiayi0921 opened this issue May 28, 2024 · 1 comment
Open

"Cannot find module './util/assertString'" since 13.12.0 #2407

lijiayi0921 opened this issue May 28, 2024 · 1 comment
Labels

Comments

@lijiayi0921
Copy link

Describe the bug
My typescript program is unable to launch using yarn.

Error: Cannot find module './util/assertString'
Require stack:

  • C:\dev\xxxxx\server\node_modules\validator\lib\toDate.js
  • C:\dev\xxxxx\server\node_modules\validator\index.js
  • C:\dev\xxxxx\server\node_modules\express-validator\src\chain\sanitizers-impl.js
  • C:\dev\xxxxx\server\node_modules\express-validator\src\chain\index.js
  • C:\dev\xxxxx\server\node_modules\express-validator\src\middlewares\exact.js

Forcing validator to 13.11.0 (with yarn resolutions) removes the error

Additional context
Validator.js version: 13.12.0
Node.js version: v18.16.1
OS platform: windows

@rubiin
Copy link
Member

rubiin commented Jun 1, 2024

could you share a minimal repro on how you are using the package?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants