greensock / GSAP

GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
https://gsap.com
19.85k stars 1.72k forks source link

Karma Errors #149

Closed anthonygreco closed 8 years ago

anthonygreco commented 8 years ago

Looks like version 1.18.5 introduces the following error when I run my Karma tests now:

26 05 2016 09:53:13.642:WARN [web-server]: 404: /base/assets/TweenLite.js
26 05 2016 09:53:13.643:WARN [web-server]: 404: /base/assets/plugins/CSSPlugin.js
PhantomJS 2.0.0 (Mac OS X 0.0.0) ERROR: 'There is no timestamp for /base/assets/TweenLite.js!'
PhantomJS 2.0.0 (Mac OS X 0.0.0) ERROR: 'There is no timestamp for /base/assets/plugins/CSSPlugin.js!'
PhantomJS 2.0.0 (Mac OS X 0.0.0) ERROR
  Error: Script error for "../TweenLite", needed by: draggable
  http://requirejs.org/docs/errors.html#scripterror
  at /node_modules/requirejs/require.js:140

Still looking into what changed...

jackdoyle commented 8 years ago

That kinda sounds like just a path error. Like perhaps you've got TweenLite (or Draggable) in the wrong directory? Remember, Draggable is inside a "utils" folder whereas TweenLite isn't - that's why it points to "../TweenLite.js" from inside Draggable.