Skip to content

bindings.setParam error (ws281x-native.js) #122

@Morenju1363

Description

@Morenju1363

Hello, Im trying to run a nodejs back end server but keep running into an error. Everytime i try to run my backend.js file as "sudo node backend.js" i get the following error:

"
/home/yg/Desktop/Projects/myLEDVisualizer/node-rpi-ws281x-native/lib/ws281x-native.js:144
bindings.setParam(paramCodes.dma, dma);
^

TypeError: bindings.setParam is not a function
at Function.init (/home/yg/Desktop/Projects/myLEDVisualizer/node-rpi-ws281x-native/lib/ws281x-native.js:144:12)
at Object. (/home/yg/Desktop/Projects/myLEDVisualizer/backend.js:16:8)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47

"

I have looked into the native.js file as well as the binding file it points to and I sede that the setParam function is declared for the variable bindings.
Thanks for the help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions