Closed skube closed 10 years ago
+1 on this issue.
What version of phantomjs are you running?
phantomjs -v
1.9.2
1.9.2 was throwing the same errors as mentioned at Obvious/phantomjs#73, so I tried reverting to 1.9.0 and 1.9.1 and they both throw the same createPage
error as above.
+1 on this issue.
Facing the same issue here, looks like no-one is aligned with the issue yet?
+1
The issue has been confirmed. We'll do our best to get out a fix for it as soon as time allows. Thanks for your patience!
Thanks Addy for the confirmation, hope to see the fix soon.
This should now be working using the version in master. I've tested it as working. To try it out:
git clone
this repo && cd into itnpm install -g && npm link
yo mobile
grunt autoshot
Could you try this out and let me know if you experience the same issues?
I could easily have done something wrong or misinterpreted as I am noob. In any case, these are the steps I did verbatim:
mkdir test && cd $_
git clone https://github.com/yeoman/generator-mobile/
cd generator-mobile
npm install -g && npm link
yo mobile
and selected all the defaultsgrunt autoshot
I still get:
Running "autoshot:dist" (autoshot) task
Fatal error: Cannot call method 'createPage' of undefined
I am running:
yo -v
>1.1.2
grunt --version
>grunt-cli v0.1.9
>grunt v0.4.2
I have also tried with the latest, getting the same issue again.
Fatal error: Cannot call method 'createPage' of undefined.
Same issue resolved by putting "phantom/bin" on the PATH
export PATH=$PATH:/
@bataboske, it didn't work for me at-least, then I uninstalled phantomjs and did a fresh installation through Brew
brew update && brew install phantomjs
It took sometime but essentially got installed and grunt autoshot
task works perfectly.
By the way I am on OSX Mavericks (version 10.9.1) and phantomjs version use to create some issue before.
Anyway things are good and hope we can have specific instructions to deal with phantomjs, though it's specific to grunt-autoshot
task but worth to mention.
I tried adding phantom to the PATH export PATH=$PATH://phantom/bin
with no luck.
Also tried:
brew uninstall phantomjs
brew update && brew install phantomjs
grunt autoshot
But still got
Running "autoshot:dist" (autoshot) task
Fatal error: Cannot call method 'createPage' of undefined
Sorry guys, seems parser removed text in bracket. Probably thought it's html. So it should be full path to the phantom bin Ie. export PATH=$PATH:/opt/phantom/bin
Sorry, how do I know the path to the Phantom bin if I installed via brew install phantomjs
? Is it installed globally somewhere? Am I doing something wrong?
Edit: I was doing something wrong. Apparently I had two versions of phantomjs installed and it was always using the 1.9.2 version even after brew install phantomjs
(instead of the latest 1.9.7).
I did a sudo find / -type f -name phantomjs
to find all filenames with phantomjs and deleted them. Then I re-did the brew update && brew install phantomjs
and it worked! :smile:
Closing since this has been fixed with latest phantomjs version.
Attempting to run
grunt screenshots
results in error:The following is the output from my system: