The New Way to Build with AI! Introducing ReUI — the developer platform for agentic UI with shadcn/ui
Browse ReUI Pro

Cannot implement tiny-slider


While I try to import the tiny-slider, got this following issue:
Error: ../node_modules/tiny-slider/src/tiny-slider.d.ts:243:5 - error TS2300: Duplicate identifier 'preventScrollOnTouch'.

When I unistall the tiny slider from module, I still cannot run and the tiny slider doesn't shows up also. Right now I am using the metronic 8 with angular 17, the demo theme is demo 1.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)

 
Deleted comment
 
Deleted comment

Hi

Try to reinstall Tiny Slider, to clear any corrupted or cached installation of tiny-slider:

Remove tiny-slider completely:
npm uninstall tiny-slider


Clear your node_modules and reinstall:
rm -rf node_modules package-lock.json
npm install


Reinstall tiny-slider:
npm install tiny-slider


Add the tiny-slider styles and scripts if not already included in your angular.json:

"styles": [
"node_modules/tiny-slider/dist/tiny-slider.css",
"src/styles.scss"
],
"scripts": [
"node_modules/tiny-slider/dist/min/tiny-slider.js"
]



Sample code usage:

import { tns } from "tiny-slider/src/tiny-slider";

ngOnInit() {
tns({
container: ".my-slider",
items: 1,
slideBy: "page",
autoplay: true
});
}


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
buy metronic keenthemes mega bundle

ReUI

Open-source React components, blocks and templates built on shadcn/ui and Tailwind CSS by Keenthemes.