viktor-shmigol / ng2-cable

Connect your Angular(2/4)/ionic(2/3) application with Rails ActionCable
https://ng2-cable-example.herokuapp.com
44 stars 14 forks source link

Can't resolve ng2-cable #1

Closed Valindo closed 8 years ago

Valindo commented 8 years ago

I have installed the packages as prescribed. After I include it in my app.component.ts, it breaks, here is the error

ERROR in ./src/app/app.component.ts Module not found: Error: Can't resolve 'ng2-cable' in '/Users/valindogodinho/Projects/ANGULARTCP/src/app' @ ./src/app/app.component.ts 11:0-50 @ ./src/app/index.ts @ ./src/main.ts @ multi main

help please.

viktor-shmigol commented 8 years ago

Hi @Valindo . Could you please provide me more information about your problem: node version, angular version or send me link to your repository. Thank you for letting me know about this situation.

viktor-shmigol commented 8 years ago

@Valindo Try to import this plugin like this: import { Ng2Cable, Broadcaster } from 'ng2-cable/js/index';

Valindo commented 8 years ago

Hey, Sorry for the late reply. The import statement worked! Thank you so much, you're a life saver :D