After installing loopback4-extension-grpc I have a problem with compiling .proto files to .ts because folder "compilers" with all necessary binaries don't exist after extension installation over NPM.
How to reproduce:
Install grpc extension in new lb4 project npm install @loopback/grpc
Follow instruction in main README to setup basic grpc component
Try to start app, it will throw you this error:
/bin/sh: 1: /home/vmois/Projects/loopback4/grpc-testing/node_modules/@loopback/grpc/compilers/linux/bin/protoc: not found
Unable to start application: Error: Command failed: /home/vmois/Projects/loopback4/grpc-testing/node_modules/@loopback/grpc/compilers/linux/bin/protoc --plugin=protoc-gen-ts=/home/vmois/Projects/loopback4/grpc-testing/node_modules/.bin/protoc-gen-ts --ts_out service=true:src/controllers -I src/controllers src/controllers/grpc.proto
/bin/sh: 1: /home/vmois/Projects/loopback4/grpc-testing/node_modules/@loopback/grpc/compilers/linux/bin/protoc: not found
Check in node_modules/@loopback/grpc, that compilers folder doesn't exist.
If you manualy copy folder compilers from loopback4-extension-grpc repo to your node_modules/@loopback/grpc it works perfectly. Problem is in missing compilers folder.
Expected result
compilers folder must exist after NPM installation. Fastest way is to add compilers to npm. What do you think?
Description/Steps to reproduce
After installing loopback4-extension-grpc I have a problem with compiling .proto files to .ts because folder "compilers" with all necessary binaries don't exist after extension installation over NPM.
How to reproduce:
npm install @loopback/grpc
node_modules/@loopback/grpc
, thatcompilers
folder doesn't exist.compilers
from loopback4-extension-grpc repo to yournode_modules/@loopback/grpc
it works perfectly. Problem is in missingcompilers
folder.Expected result
compilers
folder must exist after NPM installation. Fastest way is to addcompilers
to npm. What do you think?