G
G
gifon2022-01-18 22:50:26
Internationalization and localization
gifon, 2022-01-18 22:50:26

How to change typescript typepath?

Hello, I created an empty project and added [email protected] there.
Everything works, but I got warnings like

Module '"vue-i18n"' has no exported member 'VueMessageType'. Did you mean to use 'import VueMessageType from "vue-i18n"' instead?


eslint suggests vue-i18n path in module "D:/Projects/FrontEnd/site/node_modules/vue-i18n/types/index"
although there is no types folder and real path to index.d.ts is D:\Projects\FrontEnd\site\ node_modules\vue-i18n\dist\vue-i18n.d.ts
as I understood phantom warnings due to default path errors, how can I fix the path, (everything compiles and works, but there are warnings)
61e719fdba0b5196349107.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question