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
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
Remove the tiny-slider package:
<pre>
npm uninstall tiny-slider
{
"compilerOptions": {
"skipLibCheck": true
}
}
rm -rf node_modules package-lock.json
npm install