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);