While trying to run my project ionic cordova run Android it will show error:-
[13:07:43] typescript error
Cannot find type definition file for 'hammerjs'.
TypeError: Cannot read property 'replace' of null
at Object.escapeHtml (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\util\helpers.js:253:10)
at generateCodeBlock (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:187:77)
at generateDiagnosticHtml (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:179:12)
at Array.map (<anonymous>)
at Object.printDiagnostics (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\logger\logger-diagnostics.js:15:39)
at D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\transpile.js:158:34
at new Promise (<anonymous>)
at transpileWorker (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\transpile.js:107:12)
at Object.transpile (D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\transpile.js:64:12)
at D:\projects\hafele_latest\node_modules\@ionic\app-scripts\dist\build.js:109:82
I already added @types/hammerjs. I dont think it's a definition error. I think it is app-script error.