If anyone is looking for a good example of using gRPC-web (or gRPC with a FrontEnd project + Golang) this isn't it. It's too old, and leverages yarn
instead of npm
.
Trying to pull this project clean results in a LOT of issues with the FrontEnd project.
ERROR Failed to compile with 2 errors 5:10:50 PM
These dependencies were not found:
* todo_grpc_web_pb in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&
* todo_pb in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=script&lang=js&
To install them, you can run: npm install --save todo_grpc_web_pb todo_pb
Trying to install these dependencies won't work because there's no reference that's been made for these imports. Doesn't seem like the original author tried to pull their own project on a clean machine and ran through their own documentation. :(