Swipe-Cards breaks on version 1.0.0.12


#1
Uncaught TypeError: Cannot read property 'ViewController' of undefined 

The error arises from this line in swipecards.js

var SwipeableCardController = ionic.controllers.ViewController.inherit

Ionic Swipecards problem after updating to v.1.0.0-beta.12
Ionic Swipecards problem after updating to v.1.0.0-beta.12
Error Swipe Cards
Ionic Swipecards problem after updating to v.1.0.0-beta.12
#2

They made a breaking change in beta 12. You can fix it by changing ionic.swipecard.js (line 81)

var SwipeableCardController = ionic.controllers.ViewController.inherit

to

var SwipeableCardView = ionic.views.View.inherit


#3

Thanks, buddy. No error message anymore!


#4

Line 26 in ionic.swipecards.js has to be changed as well.


#5

I updated the swipecard code on githup and the cdn so it should all be fixed now.


#6

Hi @mhartington

I have a problem with your swipe card. When I run it on debug mode is running okay. You can see the picture:

After that I tries gulp build I have an know error Error: [$injector:unpr] Unknown provider: tProvider <- t and don’t know how to debug or fix that. You can see picture for detail:

I try your tidy card everything alright. Can you help me solve that problem.

Thanks


#7

Would you be able to recreate the issue in a codepen?


#8

Thanks @mhartington I’ve solved that problems, that problems come from inline array annotation when minify so it’s easy to fix.