Skip to content
This repository has been archived by the owner on Jul 23, 2019. It is now read-only.

TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply') #40

Open
kodelio opened this issue Jan 31, 2017 · 1 comment

Comments

@kodelio
Copy link

kodelio commented Jan 31, 2017

Hi, when running grunt htmlSnapshot, I'm getting this

Running "htmlSnapshot:all" (htmlSnapshot) task
running html-snapshot task...hold your horses
Warning: error: Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')
...

I searched why I'm getting this error and it was apparently due to the version of PhantomJS, but Function.prototype.bind should work with PhantomJS 2

How can I solve this ?

@zoellert
Copy link

zoellert commented Jun 5, 2017

Hi, I have the same problem...

Running "htmlSnapshot:dist" (htmlSnapshot) task
running html-snapshot task...hold your horses
Warning: error: Error: [$injector:modulerr] Failed to instantiate module ng due to:
TypeError: 'undefined' is not an object (evaluating 'Function.prototype.bind.apply')

Any idea?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants