generator-jekyllrb icon indicating copy to clipboard operation
generator-jekyllrb copied to clipboard

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

Open mashcode opened this issue 9 years ago • 12 comments

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

mashcode avatar Apr 27 '15 03:04 mashcode

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

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

signorekai avatar Apr 29 '15 10:04 signorekai

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

robertbird avatar May 04 '15 12:05 robertbird

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 .

signorekai avatar May 05 '15 03:05 signorekai

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

cupofjoakim avatar May 08 '15 08:05 cupofjoakim

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

defvol avatar May 17 '15 18:05 defvol

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 .

signorekai avatar May 17 '15 19:05 signorekai

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

maxleistner avatar Jun 02 '15 08:06 maxleistner

Thanks @signorekai ! Reinstalling BrowserSync did it for me.

guscastaneda avatar Jun 09 '15 15:06 guscastaneda

thanks @signorekai its all working now

kerrongordon avatar Aug 01 '15 01:08 kerrongordon

Thank you for the tip, got it working!

unwiredtech avatar Sep 18 '15 05:09 unwiredtech

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

siwise avatar Mar 03 '16 05:03 siwise

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?

jeromewiley avatar Nov 29 '16 17:11 jeromewiley