thrift-server
thrift-server copied to clipboard
thrift-client-ttwitter-filter: ttwitter classes not in package
Trying to use the ttwitter filter gives this error:
Error: Cannot find module '../ttwitter/com/creditkarma/finagle/thrift'
Probably because the files list in package.json only has dist/main
and not dist/ttwitter
Hi @jlai, Can I get how ttwitter filter is being used in your use case.
Using it as documented in the readme, e.g.
import {ThriftClientTTwitterFilter} from '@creditkarma/thrift-client-ttwitter-filter';
and connection.register(ThriftClientTTwitterFilter(filterOptions))
It's a packaging issue. Fixing it should be as simple as adding dist/ttwitter
to https://github.com/creditkarma/thrift-server/blob/master/packages/thrift-client-ttwitter-filter/package.json