Introduction of vue-amap error report in vue Project

vue-amap error report is introduced into vue project

prompt the following information in vscode

[ts] declared "Amap" but never read its value.
[ts]
could not find the declaration file for module "vue-amap". "d:/front/vue-element-admin/node_modules/vue-amap/dist/index.js" implicitly has a "any" type.
try "npm install @ types/vue-amap" (if it exists), or add a new declaration file (.d.ts) containing the "declaration module "vue-amap"";

Jun.07,2021

you wrote js, this prompt is typescript (in vscode, we haven't found how to turn off this ts prompt when writing js), if you confirm that the module is installed, you can ignore this error.


has it been solved? ts is compatible with the original js

.
Menu