Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

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

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
Copy link

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

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

@robertbird
Copy link

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

@signorekai
Copy link

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

@cupofjoakim
Copy link

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

@defvol
Copy link

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
Copy link

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

@maxleistner
Copy link

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

@guscastaneda
Copy link

Thanks @signorekai ! Reinstalling BrowserSync did it for me.

@kerrongordon
Copy link

thanks @signorekai its all working now

@unwiredtech
Copy link

Thank you for the tip, got it working!

@siwise
Copy link

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
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests