Matrix Creator InitialState


#1

I am getting this error when launching the matrix creator sensor app for the Initial State Dashboard.

var protoBuilder = protoBuf.loadProtoFile(’/home/pi/js-matrix-core-app/node_modules/protocol-buffers/matrix_io/malos/v1/driver.proto’)
^

TypeError: protoBuf.loadProtoFile is not a function
at Object. (/home/pi/js-matrix-core-app/node_modules/matrix-sensors.js:38:29)

This is the repo site for the project:

Please any help will be beneficial!!!
Thanks!!!


#2

Hi @yeisonlf,

This seems to be an issue on the InitialState code side in the matrix-sensors.js file.

Try changing protoBuf.loadProtoFile to protoBuf.load in the matrix-sensors.js file as it seems the library may be outdated as found here.

If not, I suggest reaching out to InitialState people! Hope this helps :smiley:


#3

Now I get this error regarding Node_Module_Version of Node JS but I believe Im using the latest version, so dont know what exactly to do here, or if the Module Version is something different that needs to be updated separately?

Thanks


#4

Fixed the other issue, having this one now!! Maybe is because of the outdated package.
image

Thanks!!


#5

In that case, try .build (the default one) or read through the protobufjs package to see what function to use instead.