0

I have the same issue as described here: Using Angular Dragula without RequireJS

It works if do this:

var app = angular.module('app', [
  angularDragula(angular)
]);
<script src="node_modules/angularjs-dragula/dist/angularjs-dragula.js"></script>

But all the jasmine tests fail with: Error: ReferenceError: Can't find variable: angularDragula

bokkie
  • 1,477
  • 4
  • 21
  • 40
  • 1
    Can you post your configuration for the test? You should have an array of file paths which includes angularjs-dragula.js, and the files must be ordered correctly (dependencies must come before the files that depend on them). – see sharper Mar 14 '18 at 06:49
  • yeah, that was the problem. I use chutzpah, so in chutzpah.json I added the path to angular-dragula. Thanks. I guess you should create and answer with this so I can accept it and get the bounty ;) – bokkie Mar 14 '18 at 10:33

1 Answers1

1

Check your configuration file. You should have an array of file paths which includes angularjs-dragula.js, and the files must be ordered correctly (dependencies must come before the files that depend on them).

see sharper
  • 11,505
  • 8
  • 46
  • 65