Can't call Google Cloud Function from a react app. I get googleauth.js:17 Uncaught Error: Cannot find module 'child_process' in my browser's console

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/googlecloud

Our great sponsors
  • SurveyJS - Extensible JavaScript Form Builder Libraries
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • InfluxDB - Access the most powerful time series database as a service
  • spheron-react-api-stack

    I have this app here: https://github.com/ChristianOConnor/google-cloudfunction-callfromreactapp. It is literally just the output of npx create-react-app google-cloudfunction-callfromreactapp --template typescript and making a few changes. I added src/api/google.ts which looks like this: ``` import { JWT } from "google-auth-library"; import keys from 'PATH TO KEYS HERE';

  • React

    The library for web and native user interfaces

    Edit src/App.tsx and save to reload. Learn React

  • SurveyJS

    Extensible JavaScript Form Builder Libraries. SurveyJS is a set of four fully customizable JS libraries that allow you to create, easily modify, and run multiple web forms in any web app, while retaining all sensitive data on your own servers.

  • reactfire

    Hooks, Context Providers, and Components that make it easy to interact with Firebase.

    Are you using Firebase? If not, you probably should. You can call functions (with Auth) from your react app. There's a framework you can use to help: https://github.com/FirebaseExtended/reactfire

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts