I solved this.
- In sound-cloud.ts i replaced:
import { SC } from 'soundcloud'
;
for this:
declare var SC;
- I included SoundCloud script in the index.html file instead using npm package:
<script src="https://connect.soundcloud.com/sdk/sdk-3.1.2.js"></script>
- So, in the player page, i imported:
import { SoundCloud } from '../../providers/sound-cloud';
- and inyected in constructor:
constructor(public soundCloud: SoundCloud)
NOTE: This is a good tutorial: https://www.joshmorony.com/streaming-music-from-soundcloud-in-ionic-2-part-1/ but there are some changes in app.ts because now there is a new version than in the post.