Webpack loader that converts .proto files into autogenerated JavaScript files for use with gRPC. Version 2.0.1 is the latest stable release; appears to be a maintenance-only project with no recent updates. Supports both static codegen (via google-protobuf) and dynamic codegen (via grpc.load). Requires peer dependencies: google-protobuf, grpc, protobufjs, and webpack 3.x. Differentiates by providing a straightforward webpack integration for gRPC proto files, though the API is considered verbose by the author.
npm install grpc-loaderNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures webpack to load .proto files with grpc-loader and demonstrates usage with static code generation.
Use a different loader or upgrade webpack and migrate to @grpc/proto-loader or grpc-tools.
Switch to @grpc/proto-loader and @grpc/grpc-js instead of using grpc-loader.
Ensure you have exactly one version of each peer dep installed. Use --legacy-peer-deps if needed.
Do not attempt to import 'grpc-loader' in your source code; only reference it in webpack config.
Run npm install --save-dev grpc-loader (or yarn add --dev grpc-loader).
Install google-protobuf: npm install google-protobuf or yarn add google-protobuf.
Install grpc: npm install grpc or yarn add grpc. Note: grpc is deprecated; consider switching to @grpc/grpc-js.