siygle / grunt-autoshot

Create a quick screenshot for your site which could help for document or testing
118 stars 14 forks source link

Cannot call method createPage of undefined #7

Closed jaireina closed 10 years ago

jaireina commented 11 years ago

I'm getting this error when I try to run the grunt task: Error: 'Fatal error: Cannot call method 'createPage' of undefined'

It's the same error reported here: http://stackoverflow.com/questions/19298207/grunt-autoshot-cannot-call-method-createpage-of-undefined/19750159#19750159

I uninstalled my phantomjs@1.9.2 and installed 1.9.0 and it worked!

What changed from one version to another?

adamcbrewer commented 10 years ago

Yup same issue here. Thanks @jaireina for suggesting the 1.9.0 version!

adamcbrewer commented 10 years ago

I'm new to phantomJS myself, but I'm trying to ask them what would be throwing the error on this line.

mdarif commented 10 years ago

I am also getting the same issue while running from yeoman generator-mobile.

Hope to hear from the dev soon.

mdarif commented 10 years ago

The same issue has been tracked here as well - https://github.com/yeoman/generator-mobile/issues/20

mdarif commented 10 years ago

https://github.com/yeoman/generator-mobile/issues/20#issuecomment-35687275

It's resolved for me, kindly check out the above link.

bergie commented 10 years ago

I wonder why autoshot doesn't use a bundled local phantomjs like many other grunt plugins do. Example: https://github.com/jdcataldo/grunt-mocha-phantomjs

Also, error handling would be nice :-)

orangenpresse commented 10 years ago

I fixed the problem with phantomjs 1.9.7 by changing the dependency version of "node-phantom-simple "in the package.json to 1.2.0

You also need to run "npm install" in the module folder again.