Angular 找不到';的类型定义文件;传单';
运行安卓操作系统运行ionic codrova,我将返回此错误:Angular 找不到';的类型定义文件;传单';,angular,ionic-framework,leaflet,Angular,Ionic Framework,Leaflet,运行安卓操作系统运行ionic codrova,我将返回此错误: typescript error Cannot find type definition file for 'leaflet'. TypeError: Cannot read property 'replace' of null at Object.escapeHtml (C:\Users\mes\Desktop\Mobile-DevM\node_modules\@ionic\app-scripts\dist\util\
typescript error
Cannot find type definition file for 'leaflet'.
TypeError: Cannot read property 'replace' of null
at Object.escapeHtml (C:\Users\mes\Desktop\Mobile-DevM\node_modules\@ionic\app-scripts\dist\util\helpers.js:253:10)
at generateCodeBlock (C:\Users\mes\Desktop\Mobile-DevM\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:187:77)
......
想法?如果尚未安装,可以尝试安装
npm install@types/传单
谢谢你的建议,但这对我不起作用。