flat-to-nested-js icon indicating copy to clipboard operation
flat-to-nested-js copied to clipboard

TypeError: handler is not a function

Open fyarepo opened this issue 7 years ago • 1 comments

We are using firebase functions. Once add the flat-to-nested module, it has error message.

var FlatToNested = require('flat-to-nested'); var flatToNestedConfig = { 'id': 'id', 'parent': 'parentId', 'children': 'children' }; var flatToNested = new FlatToNested(flatToNestedConfig);

What can I do? Thanks

fyarepo avatar Nov 27 '17 02:11 fyarepo

I don't know what is a firebase function. Can you share a minimal code example that triggers the error?

joaonuno avatar Nov 27 '17 09:11 joaonuno