I trying to set some params for Swiper. It work when ionic serve in browser. But when build apk file it has ngc error
[01:53:36] ngc error: Error: Error at D:/wybt/.tmp/pages/intro/intro.ts:22:23:
Property 'params' does not exist on type 'Swiper'.
at check (D:\wybt\node_modules\@angular\tsc-wrapped\src\tsc.js:31:15)
at Tsc.typeCheck (D:\wybt\node_modules\@angular\tsc-wrapped\src\tsc.js:86:9)
at D:\wybt\node_modules\@angular\tsc-wrapped\src\main.js:33:23
at process._tickCallback (internal/process/next_tick.js:103:7)
at Module.runMain (module.js:592:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Here is the code
let params = this.slider.getSlider().params;
params.freeMode = true;
params.freeModeSticky = true;
params.freeModeMomentumBounce = false;
params.freeModeMomentumRatio = 0.1;
params.resistance = true;
params.resistanceRatio = 0;