angular-qr icon indicating copy to clipboard operation
angular-qr copied to clipboard

TypeError: t is not a function with random img

Open eduardosanzb opened this issue 9 years ago • 5 comments

So I´m using the qr tag and a wild random image appear.

/*TEAM CONTROLLER*/
function TeamCtrl($scope, $localStorage) {
  $scope.user = $localStorage.getObject("user");
  console.log($scope.user);

  $scope.qrcodeString = $scope.user.team;

  console.log($scope.qrcodeString);

}
TeamCtrl.$inject = ['$scope', '$localStorage'];

screen shot 2016-01-31 at 12 28 47 am

<ion-view view-title="Team">
  <ion-content>

    <h1>Hola</h1>
    <qr type-number="8" correction-level="'M'" size="200" input-mode="'AUTO'" text="qrcodeString" image="true"></qr>

  </ion-content>
</ion-view>

eduardosanzb avatar Jan 31 '16 06:01 eduardosanzb

Getting the same thing, omitting the image leads to a different error:

screen shot 2016-02-04 at 3 03 12 pm

angular.min.js:107 TypeError: t is not a constructor
    at u (http://localhost:9000/lib/angular-qr.min.js:7:2038)
    at link (http://localhost:9000/lib/angular-qr.min.js:7:2189)
    at http://localhost:9000/lib/angular.min.js:73:222
    at ca (http://localhost:9000/lib/angular.min.js:73:279)
    at I (http://localhost:9000/lib/angular.min.js:62:174)
    at g (http://localhost:9000/lib/angular.min.js:55:97)
    at http://localhost:9000/lib/angular.min.js:54:239
    at A.link (http://localhost:9000/lib/angular-route.min.js:7:408)
    at ca (http://localhost:9000/lib/angular.min.js:73:279)
    at I (http://localhost:9000/lib/angular.min.js:62:174) <qr type-number="8" correction-level="'M'" size="200" text="string" class="ng-scope ng-isolate-scope">

phil-kt avatar Feb 04 '16 20:02 phil-kt

@LinkCable have u found any solution? I have another project working but I did it a long time ago. =/ but in the moment I even copy the same libraries from the old project the problem starts again. I´m using firebase, could be a conflict there. Kind Regards

eduardosanzb avatar Feb 08 '16 18:02 eduardosanzb

@eduardosanzb no, I just switched to a different angular-qr project. https://github.com/monospaced/angular-qrcode

phil-kt avatar Feb 10 '16 04:02 phil-kt

@LinkCable Thank you so much dude!

eduardosanzb avatar Feb 10 '16 04:02 eduardosanzb

'public/lib/qrcode/lib/qrcode.min.js', 'public/lib/angular-qr/angular-qr.min.js'

resolved issue by placing dependencies in the correct order

ayemess avatar Apr 08 '17 23:04 ayemess