Error: Transformer is not a function
Closed this issue · 3 comments
thau0x01 commented
thau0x01 commented
I'm a dumb, just ignore it, i forgot to export the ModelTransformer in my custom transformer.
module.exports = ModelTransformer
My code was missing this line.
rhwilr commented
I'm glad you could solve the issue.
But I do think the error message could have been clearer, so I will leave this issue open to remind me to provide a better error message.
rhwilr commented
In version 1.5.0, the error message now says that the transformer is not valid:
A transformer must be a function or a class extending TransformerAbstract