bougarfaoui / ui-carousel

🎨 Angular carousel Component 🔥
https://bougarfaoui.github.io/ui-carousel/
MIT License
79 stars 53 forks source link

Module not found error #23

Open ayttunc opened 5 years ago

ayttunc commented 5 years ago

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.

jesussandreas commented 5 years ago

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