You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Charles-Romestant-MacBook-Air:activity cromestant$ node test.js
/Users/cromestant/Codigos/node/activity/test.js:4
var buf = type.toBuffer(pet); // Serialized object.
^
TypeError: type.toBuffer is not a function
at Object. (/Users/cromestant/Codigos/node/activity/test.js:4:16)
at Module._compile (module.js:425:26)
at Object.Module._extensions..js (module.js:432:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:313:12)
at Function.Module.runMain (module.js:457:10)
at startup (node.js:138:18)
at node.js:974:3
Thanks for the detailed info. From the package.json it seems your OS X install is using an old version of avsc (1.0.2). Upgrading to the current version (3.1.1) should fix this. Let me know if not.
I have a simple sample code taken from the documentation:
test.js
And a simple avsc file in schemas/peg.avsc
on ubuntu, running node test.js I get:
however con El Capitán:
important version & stuff
The text was updated successfully, but these errors were encountered: