Skip to content Skip to sidebar Skip to footer

Bacon.js Bus.plug: Uncaught Error: Not An Observable : [object Object]

I was trying baconjs's tutorial. https://baconjs.github.io/tutorials.html#content/tutorials/2_Ajax But, I got the error at 'Bus.plug' var cart = ShoppingCarEt([]) var cartView = Sh

Solution 1:

It was caused by "bacon-jquery-bindings"(https://www.npmjs.com/package/bacon-jquery-bindings)

varBacon = require('baconjs');
var $ = jQuery  = require("jquery");
Bacon.$ = require("bacon-jquery-bindings"); <-

It seems to overwrite asEventStream function.

We should use "bacon.jquery"(https://www.npmjs.com/package/bacon.jquery)

Post a Comment for "Bacon.js Bus.plug: Uncaught Error: Not An Observable : [object Object]"