robwierzbowski / generator-jekyllrb

Supercharge Jekyll development with Yeoman. Yo, Jekyllrb!
BSD 3-Clause "New" or "Revised" License
596 stars 65 forks source link

Grunt serve: Warning: Cannot read property 'prototype' of undefined #145

Open mashcode opened 9 years ago

mashcode commented 9 years ago

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

signorekai commented 9 years ago

Had the same problem - I just manually installed the BrowserSync Grunt plugin.

Command: $ npm install grunt-browser-sync --save-dev

robertbird commented 9 years ago

I was having the same problem (on Windows 8.1 with Node 0.10.36) and @signorekai suggestion worked perfectly for me - thanks!

signorekai commented 9 years ago

Cheers!

On Mon, May 4, 2015, 20:34 Robert Bird notifications@github.com 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 .

cupofjoakim commented 9 years ago

Also had this issue (OS X 10.10.2 and Node 0.10.33) and once again @signorekai's suggestion worked perfectly.

defvol commented 9 years ago

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

signorekai commented 9 years ago

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 notifications@github.com 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 .

maxleistner commented 9 years ago

Same here. I had to add the browser-sync dependency as @signorekai suggested to make it work.

guscastaneda commented 9 years ago

Thanks @signorekai ! Reinstalling BrowserSync did it for me.

kerrongordon commented 9 years ago

thanks @signorekai its all working now

unwiredtech commented 9 years ago

Thank you for the tip, got it working!

siwise commented 8 years ago

@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!

jeromewiley commented 7 years ago

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?