Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

1.5.0-rc.1 fails to load in PhantomJS 1.x + Karma environment #13794

Closed
mattdsteele opened this issue Jan 18, 2016 · 9 comments
Closed

1.5.0-rc.1 fails to load in PhantomJS 1.x + Karma environment #13794

mattdsteele opened this issue Jan 18, 2016 · 9 comments

Comments

@mattdsteele
Copy link

I have an application which I just updated to 1.5.0-rc.1, and all our tests began to fail. It appears that the latest releases of Karma and PhantomJS are incompatible with rc1, though I'm not sure what's changed.

Tested with karma@0.13.19 and phantomjs@1.9.19, see the gist's package.json for more specifics.

To reproduce, clone and see the files in this gist: https://gist.github.com/mattdsteele/33f9b237fd13e9edc222

The error I'm seeing:

Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')
    at instantiate (C:/app/node_modules/angular/angular.js:4622)
    at provider (C:/app/node_modules/angular/angular.js:4433)
    at C:/app/node_modules/angular/angular.js:385
    at forEach (C:/app/node_modules/angular/angular.js:355)
    at C:/app/node_modules/angular/angular.js:4423
    at ngModule (C:/app/node_modules/angular/angular.js:2492)
    at invoke (C:/app/node_modules/angular/angular.js:4604)
    at runInvokeQueue (C:/app/node_modules/angular/angular.js:4497)
    at C:/app/node_modules/angular/angular.js:4506
    at forEach (C:/app/node_modules/angular/angular.js:341)
    at loadModules (C:/app/node_modules/angular/angular.js:4529)
    at createInjector (C:/app/node_modules/angular/angular.js:4409)
    at workFn (C:/app/node_modules/angular-mocks/angular-mocks.js:2799)
    at C:/app/node_modules/angular-mocks/angular-mocks.js:2779
    at C:/app/sampleProvider_spec.js:38
http://errors.angularjs.org/1.5.0-rc.1/$injector/modulerr?p0=ng&p1=TypeError%3A%20'undefined'%20is%20not%20an%20object%20(evaluating%20'Function.prototype.bind.apply')%0A%20%20%20%20at%20instantiate%20(http%3A%2F%2Flocalhost%3A9876%2FC:/app%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4622)%0A%20%20%20%20at%20provider%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4433)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A385%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A355)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4423%0A%20%20%20%20at%20ngModule%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A2492)%0A%20%20%20%20at%20invoke%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4604)%0A%20%20%20%20at%20runInvokeQueue%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4497)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4506%0A%20%20%20%20at%20forEach%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A341)%0A%20%20%20%20at%20loadModules%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4529)%0A%20%20%20%20at%20createInjector%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular%2Fangular.js%3F0bb3a8e438d28a96d20c57229ea2d6f6be3eedbc%3A4409)%0A%20%20%20%20at%20workFn%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular-mocks%2Fangular-mocks.js%3F15873dbd705e0c8571c8c5d0a1bd3d60324beb9c%3A2799)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fangular-mocks%2Fangular-mocks.js%3F15873dbd705e0c8571c8c5d0a1bd3d60324beb9c%3A2779%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2FsampleProvider_spec.js%3F264ed98e3af6ef6813ab2d8fdc752a9b30a6e6db%3A38%0A%20%20%20%20at%20attemptSync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1886)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1874%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A363%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2479%0A%20%20%20%20at%20attemptAsync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1916)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1871%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2473%0A%20%20%20%20at%20attemptAsync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1916)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1871%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1898%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1842%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2467%0A%20%20%20%20at%20clearStack%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A660)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1881%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1898%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1842%0A%20%20%20%20at%20complete%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A371)%0A%20%20%20%20at%20clearStack%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A660)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1881%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A363%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2479%0A%20%20%20%20at%20attemptAsync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1916)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1871%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2473%0A%20%20%20%20at%20attemptAsync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1916)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1871%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2473%0A%20%20%20%20at%20attemptAsync%20(http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1916)%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1871%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A1859%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A697%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A2332%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fjasmine-core%2Flib%2Fjasmine-core%2Fjasmine.js%3F391e45351df9ee35392d2e5cb623221a969fc009%3A761%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fbase%2Fnode_modules%2Fkarma-jasmine%2Flib%2Fadapter.js%3F3030709c83121e1b2ca4d1e657306b834fc13350%3A318%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fkarma.js%3A191%0A%20%20%20%20at%20http%3A%2F%2Flocalhost%3A9876%2Fcontext.html%3A48
    at forEach (C:/app/node_modules/angular/angular.js:341)
    at loadModules (C:/app/node_modules/angular/angular.js:4529)
    at createInjector (C:/app/node_modules/angular/angular.js:4409)
    at workFn (C:/app/node_modules/angular-mocks/angular-mocks.js:2799)
    at C:/app/node_modules/angular-mocks/angular-mocks.js:2779
    at C:/app/sampleProvider_spec.js:38
    at C:/app/node_modules/angular/angular.js:4527
TypeError: 'undefined' is not an object (evaluating 'sample.getValue')
    at C:/app/sampleProvider_spec.js:42
PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 2 of 2 (2 FAILED) ERROR (0.014 secs / 0.007 secs)

The tests pass if I do any of the following:

  • Revert angular and angular-mocks to 1.5.0-rc.0
  • Switch the launcher from PhantomJS to Chrome

The tests do not pass if I:

  • Switch the test runner from Jasmine to Mocha

Tested on Windows 7 and OS X.

@thorn0
Copy link
Contributor

thorn0 commented Jan 18, 2016

Phantom 1.x doesn't have Function.prototype.bind. Just use Phantom 2.x or a polyfill.

@mattdsteele
Copy link
Author

Using a polyfill fixed the issue for me.

Interestingly we already had a Function.prototype.bind polyfill in our code (MDN's version) but it didn't seem to get triggered in our PhantomJS environment.

Switching to this polyfill worked.

Should this be announced more widely? I'm not sure whether this is necessarily a breaking change, but there's enough usage of Phantom 1.x + Karma out there that I'd guess this will hit a lot of folks.

@Narretz Narretz added this to the Ice Box milestone Jan 19, 2016
@Narretz
Copy link
Contributor

Narretz commented Jan 19, 2016

PhantomJs isn't among the officially supported browsers. Also, Phantom JS 1 is very old. We'll rely on the social channels here to spread the word. I'm leaving this issue open for a bit because of that.

@gillius
Copy link
Contributor

gillius commented Jan 20, 2016

It was hard for me to figure out how to use PhantomJS2 as an alternative to polyfill. Here are the steps I used, in case it helps others:

  1. Replace npm dependency karma-phantom-launcher with karma-phantomjs2-launcher (version 0.4.0 at time of writing)
  2. Change karma.conf browsers from 'PhantomJS' to 'PhantomJS2'

@mattdsteele mattdsteele changed the title 1.5.0-rc.1 fails to load in PhantomJS + Karma environment 1.5.0-rc.1 fails to load in PhantomJS 1.x + Karma environment Jan 21, 2016
@Narretz
Copy link
Contributor

Narretz commented Feb 8, 2016

@gillius Thanks, this is good info. I'm gonna close this issue, as there's nothing more we can do about this.

@Narretz Narretz closed this as completed Feb 8, 2016
CloudNiner pushed a commit to azavea/ng-leaflet that referenced this issue Feb 10, 2016
PhantomJS 1 is fails to load in angular 1.5+
due to missing function prototypes.

Can revert to karma-phantomjs-launcher
once it officially supports PhantomJS2

No fix from the angular project because phantomjs
is not one of the officially supported browsers

See:
angular/angular.js#13794
@nmccready
Copy link

Why is this not in the changelog?

@Narretz
Copy link
Contributor

Narretz commented Feb 11, 2016

Because we don't support PhamtomJS officially

addaleax added a commit to addaleax/angular-gettext that referenced this issue Feb 12, 2016
This fixes the current build, which is broken on angular 1.5.0
due to angular/angular.js#13794.
addaleax added a commit to addaleax/angular-gettext that referenced this issue Feb 12, 2016
This fixes the current build, which is broken on angular 1.5.0
due to angular/angular.js#13794.
addaleax added a commit to addaleax/angular-gettext that referenced this issue Feb 13, 2016
This fixes the current build, which is broken on angular 1.5.0
due to angular/angular.js#13794.
lvostinar pushed a commit to Servoy/servoy-client that referenced this issue Feb 15, 2016
lvostinar pushed a commit to Servoy/sablo that referenced this issue Feb 15, 2016
@sullivanpt
Copy link

FYI: karma-phantomjs2-launcher is deprecated. If you update karma-phantomjs-launcher to "1.0.0" you get the same effect (PhantomJS 2.1.1) and you don't need to edit karma.conf.

seriema added a commit to seriema/angular-apimock that referenced this issue Feb 20, 2016
Angular 1.5 relies on “Function.prototype.bind.apply” which isn’t
supported by PhantomJS 1. The comments here had good info:
angular/angular.js#13794

Updated karma-phantomjs-launcher, and added phantomjs-prebuilt because
it’s a peer-dependency (which isn’t installed automatically by npm 3).

Included Angular 1.5 in the tests.
seriema added a commit to seriema/angular-apimock that referenced this issue Feb 20, 2016
Angular 1.5 relies on “Function.prototype.bind.apply” which isn’t
supported by PhantomJS 1. The comments here had good info:
angular/angular.js#13794

Updated karma-phantomjs-launcher, and added phantomjs-prebuilt because
it’s a peer-dependency (which isn’t installed automatically by npm 3).

Included Angular 1.5 in the tests.

Fixes #45
redox added a commit to algolia/autocomplete that referenced this issue Apr 8, 2016
jvandemo added a commit to jvandemo/angular-contentful that referenced this issue Apr 8, 2016
grrseguin pushed a commit to grrseguin/grrseguin.github.io that referenced this issue Apr 9, 2016
- feat add automatic availibility date
- update dependencies (because of angular 1.5.0's
  [issue#13794](angular/angular.js#13794))
ncuillery added a commit to ncuillery/angular-breadcrumb that referenced this issue Apr 9, 2016
This fixes the test failure with AngularJS 1.5 which is not compatible
with PhantomJS 1: angular/angular.js#13794

BREAKING CHANGES: The minimal AngularJS version is now 1.2.x. The
branches 1.0.x et 1.1.x are no longer supported.
Closes #135
ncuillery added a commit to ncuillery/angular-breadcrumb that referenced this issue Apr 10, 2016
This fixes the test failure with AngularJS 1.5 which is not compatible
with PhantomJS 1: angular/angular.js#13794

BREAKING CHANGES: The minimal AngularJS version is now 1.2.x. The
branches 1.0.x et 1.1.x are no longer supported.
Closes #135
krtek added a commit to krtek/ngStorage that referenced this issue Apr 19, 2016
Some tests are failing with PhantomJS 1.x and Angular 1.5. See [this AngularJS issue](angular/angular.js#13794).
joelmukuthu pushed a commit to joelmukuthu/angular-snapscroll that referenced this issue Jun 5, 2016
Fixes the breaking build as detailed here angular/angular.js#13794
pulkitsinghal added a commit to pulkitsinghal/loopback-sdk-angular that referenced this issue Jun 21, 2016
possible reason behind crash when testing:
1.5.0-rc.1 fails to load in PhantomJS 1.x + Karma environment
angular/angular.js#13794

crash log:
```
PhantomJS 1.9.8 (Mac OS X 0.0.0) ERROR
  Error: [$injector:modulerr] Failed to instantiate module ng due to:
  TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')
      at ...
      at /Users/shahwarcoder/loopback-sdk-angular/test.e2e/given.js:19
```
paracycle added a commit to myplanet/angular-action that referenced this issue Aug 29, 2016
paracycle added a commit to myplanet/angular-action that referenced this issue Aug 29, 2016
PhantomJS 1.x doesn't have Function.prototype.bind which latest Angular
seems to be using. And upgrade to the launcher ensures that we use
PhantomJS 2.x

Ref: angular/angular.js#13794
paracycle added a commit to myplanet/angular-action that referenced this issue Aug 29, 2016
PhantomJS 1.x doesn't have Function.prototype.bind which latest Angular
seems to be using. And upgrade to the launcher ensures that we use
PhantomJS 2.x

Ref: angular/angular.js#13794
oliverguenther added a commit to oliverguenther/openproject that referenced this issue Sep 5, 2016
angular/angular.js#13794

The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it.
We should consider upgrading to PhantomJS 2.x, though.
oliverguenther added a commit to oliverguenther/openproject that referenced this issue Sep 5, 2016
angular/angular.js#13794

The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it.
We should consider upgrading to PhantomJS 2.x, though.
oliverguenther added a commit to oliverguenther/openproject that referenced this issue Sep 5, 2016
angular/angular.js#13794

The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it.
We should consider upgrading to PhantomJS 2.x, though.
oliverguenther added a commit to oliverguenther/openproject that referenced this issue Sep 6, 2016
angular/angular.js#13794

The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it.
We should consider upgrading to PhantomJS 2.x, though.
oliverguenther added a commit to oliverguenther/openproject that referenced this issue Sep 7, 2016
angular/angular.js#13794

The 0.0.1 polyfill for PhantomJS no longer worked so I'm replacing it.
We should consider upgrading to PhantomJS 2.x, though.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants