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 use this library in core typescript project #125

Closed
sangtrandev00 opened this issue Jul 2, 2023 · 3 comments
Closed

Cannot use this library in core typescript project #125

sangtrandev00 opened this issue Jul 2, 2023 · 3 comments

Comments

@sangtrandev00
Copy link

Is this library support for typescript project. I am currently use this typescript project for my validation
It will throw the error like this:

Could not find a declaration file for module 'just-validate'. 'd:/FPT POLYTECHNIC/WEB DESIGN CURRICULUM/SEMESTER 5/SEMESTER 5 - Front End/WEB502 - Lap trinh TypeScript - SP21/ASM_SETUP/typescript-webpack-asm/node_modules/just-validate/dist/just-validate.production.min.js' implicitly has an 'any' type. Trynpm i --save-dev @types/just-validateif it exists or add a new declaration (.d.ts) file containingdeclare module 'just-validate';ts(7016)

Expected behavior

Any body confront this issue, Give me some more solution

@horprogs
Copy link
Owner

horprogs commented Jul 5, 2023

Hey, how are you using the library? Are you importing it in your project?

@horprogs
Copy link
Owner

horprogs commented Jul 5, 2023

What Typescript version do you use? Try using Typescript 4, not 5

@sangtrandev00
Copy link
Author

Thanks. I am using typescript v5. To fix my issue, just ignore it, I used // @ts-ignore in the library, so I can use the lib

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

No branches or pull requests

2 participants