Tiny Slider in Metronic 8
Hi! Currently I am working on a project which needed the slider. But when I implement it, the tiny slider does not shows up. Then when I install the library using 'npm install tiny-slider' and run again, there is an error "Duplicate identifier 'node_modules/tiny-slider/src/tiny-slider.d.ts:243:5 - error TS2300: Duplicate identifier 'preventScrollOnTouch'.'". Why is it happening and how to fix it ? Right now I am using demo 1 and metronic 8
Replies (2)
Hi Amir
Thanks for pointing that out—it's great to know removing the duplicate initialization resolved the issue. We will fix it. Let us know if you encounter any issues.
Thanks
Hi Amir Hadi
Check if multiple versions of tiny-slider are installed in your project:
npm ls tiny-slider If you see more than one version, deduplicate it by running:
</pre>
npm dedupe
Remove the tiny-slider package:
<pre>
npm uninstall tiny-slider Add "skipLibCheck": true to your tsconfig.json:
{
"compilerOptions": {
"skipLibCheck": true
}
} Remove the node_modules folder and reinstall:
rm -rf node_modules package-lock.json
npm install