ui-carousel icon indicating copy to clipboard operation
ui-carousel copied to clipboard

Module not found error

Open ayttunc opened this issue 7 years ago • 1 comments

Hello friends, I am new to Angular, and I am trying to use ui-carousel. But I having this problem.

1- I just opened a new angular project with "ng new" command.

then I just simply used this command to be able use this. npm install ui-carousel --save

2- then I found its examples inside the pakages and I copied and pasted those examples codes into my project. I also updated my app.module.ts file

3 - and finally when serve the project I get the fallowing error.

ERROR in ./node_modules/ui-carousel/dist/src/ui-carousel/ui-carousel.component.js Module not found: Error: Can't resolve 'rxjs/Subject' in '/Users/unchained/Documents/Projects/Angular Projects/htmldivcsslayoutexercise/node_modules/ui-carousel/dist/src/ui-carousel' ERROR in ./node_modules/ui-carousel/dist/src/ui-carousel/ui-carousel.component.js Module not found: Error: Can't resolve 'rxjs/add/operator/throttleTime' in '/Users/unchained/Documents/Projects/Angular Projects/htmldivcsslayoutexercise/node_modules/ui-carousel/dist/src/ui-carousel'

So, is it something which I do it wrong or is it something wrong with the component ?

thanks for further answers.

ayttunc avatar Aug 15 '18 14:08 ayttunc

You need to install rxjs-compat 👾https://www.npmjs.com/package/rxjs-compat

jesussandreas avatar Dec 05 '18 16:12 jesussandreas