I'm using node with google firebase and always I
(node:13556) DeprecationWarning: grpc.load: Use the @grpc/proto-loader module with grpc.loadPackageDefinition instead
my node version is a latest
$ node -v
v10.14.1
npm install --save grpc
npm install --save @grpc/proto-loader
// replace - const notesProto = grpc.load('notes.proto');
// to
const grpc = require('grpc')
const protoLoader = require('@grpc/proto-loader')
const packageDefinition = protoLoader.loadSync('notes.proto');
const notesProto = grpc.loadPackageDefinition(packageDefinition);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With