Answer the question
In order to leave comments, you need to log in
Why is the node js module not working?
I want to use the module for DynamoDB. I install it via npm.
I indicate var ddb = require('dynamodb');
.
... ddb.getItem(...)
An error is displayed in the console Is the
code trying to use undefined as a function?
Answer the question
In order to leave comments, you need to log in
"undefined is not a function" doesn't tell you anything? It turns out that the ddb variable is not defined. Maybe it just doesn't find the module. Try to reinstall it.
var ddb = require('ddb').ddb;
After initialization, there should be an object, not a function.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question