Could not find a declaration file for module 'vee-validate/dist/locale/en'.
See original GitHub issueVersions
-
vee-validate: 2.1.0-beta.6
-
vue: 2.5.1 Describe the bug as stated in https://baianat.github.io/vee-validate/guide/localization.html#localized-files, I used
import English from 'vee-validate/dist/locale/en'
And I get a TS warning
[ts] Could not find a declaration file for module 'vee-validate/dist/locale/en'. '/Users/.../node_modules/vee-validate/dist/locale/en.js' implicitly has an 'any' type. Try npm install @types/vee-validateif it exists or add a new declaration (.d.ts) file containingdeclare module ‘vee-validate’; module "/Users/.../node_modules/vee-validate/dist/locale/en"
Expected behavior I should not get a warning using ES6 … why there is no @types/vee-validate` file available to be installed via npm ?
Desktop (please complete the following information):
- OS: OSX
- Browser Chrome
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)

Top Related StackOverflow Question
// vee-validate.d.ts
declare module 'vee-validate*';oror
or
fixed my problem.
in which folder did you create this file?