generator-jekyllrb
generator-jekyllrb copied to clipboard
Grunt serve: Warning: Cannot read property 'prototype' of undefined
This error kills all hope..
Running "browserSync:server" (browserSync) task Warning: Cannot read property 'prototype' of undefined Used --force, continuing.
Running "watch" task Waiting...
Then control-C
Had the same problem - I just manually installed the BrowserSync Grunt plugin.
Command:
$ npm install grunt-browser-sync --save-dev
I was having the same problem (on Windows 8.1 with Node 0.10.36) and @signorekai suggestion worked perfectly for me - thanks!
Cheers!
On Mon, May 4, 2015, 20:34 Robert Bird [email protected] wrote:
I was having the same problem (on Windows 8.1 with Node 0.10.36) and @signorekai https://github.com/signorekai suggestion worked perfectly for me - thanks!
— Reply to this email directly or view it on GitHub https://github.com/robwierzbowski/generator-jekyllrb/issues/145#issuecomment-98694553 .
Also had this issue (OS X 10.10.2 and Node 0.10.33) and once again @signorekai's suggestion worked perfectly.
Same here. I had to add the browser-sync dependency as @signorekai suggested to make it work.
I'm curious to know why this dependency wasn't added to the package.json of my project.
It's already there in the templates https://github.com/robwierzbowski/generator-jekyllrb/blob/master/app/templates/_package.json#L11
It is odd, but I have no clue as to why it didn't load. The generator did not output any errors either.
On Mon, May 18, 2015, 02:37 Rod Wilhelmy [email protected] wrote:
Same here. I had to add the browser-sync dependency as @signorekai https://github.com/signorekai suggested to make it work.
I'm curious to know why this dependency wasn't added to the package.json of my project.
It's already there in the templates https://github.com/robwierzbowski/generator-jekyllrb/blob/master/app/templates/_package.json#L11
— Reply to this email directly or view it on GitHub https://github.com/robwierzbowski/generator-jekyllrb/issues/145#issuecomment-102833801 .
Same here. I had to add the browser-sync dependency as @signorekai suggested to make it work.
Thanks @signorekai ! Reinstalling BrowserSync did it for me.
thanks @signorekai its all working now
Thank you for the tip, got it working!
@signorekai's suggestion didn't solve it for me. Any other ideas? My grunt file is untouched besides changing the proxy.
Using node 0.12.7 on OSX 10.11
EDIT: Sorry, I got it working. For rookies like me, deleting the browser-sync and browser-sync-client folders from node_modules first, before doing @signorekai's suggestion solved it!
Tried both @signorekai and @siwise suggestions, still getting
Warning: Cannot read property 'prototype' of undefined Use --force to continue.
Aborted due to warnings.
Any other suggestions for kick-starting this grunt over here?