Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mashcode opened this issue Apr 27, 2015 · 12 comments
Open

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

mashcode opened this issue Apr 27, 2015 · 12 comments

Comments

@mashcode
Copy link

@mashcode mashcode commented Apr 27, 2015

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

This comment has been minimized.

Copy link

@signorekai signorekai commented Apr 29, 2015

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

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

@robertbird

This comment has been minimized.

Copy link

@robertbird robertbird commented May 4, 2015

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

@signorekai

This comment has been minimized.

Copy link

@signorekai signorekai commented May 5, 2015

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
#145 (comment)
.

@cupofjoakim

This comment has been minimized.

Copy link

@cupofjoakim cupofjoakim commented May 8, 2015

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

@defvol

This comment has been minimized.

Copy link

@defvol defvol commented May 17, 2015

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

This comment has been minimized.

Copy link

@signorekai signorekai commented May 17, 2015

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
#145 (comment)
.

@maxleistner

This comment has been minimized.

Copy link

@maxleistner maxleistner commented Jun 2, 2015

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

@guscastaneda

This comment has been minimized.

Copy link

@guscastaneda guscastaneda commented Jun 9, 2015

Thanks @signorekai ! Reinstalling BrowserSync did it for me.

@kerrongordon

This comment has been minimized.

Copy link

@kerrongordon kerrongordon commented Aug 1, 2015

thanks @signorekai its all working now

@unwiredtech

This comment has been minimized.

Copy link

@unwiredtech unwiredtech commented Sep 18, 2015

Thank you for the tip, got it working!

@siwise

This comment has been minimized.

Copy link

@siwise siwise commented Mar 3, 2016

@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

This comment has been minimized.

Copy link

@jeromewiley jeromewiley commented Nov 29, 2016

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.