You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in ./~/google-auth-library/lib/auth/googleauth.js
Module not found: 'child_process' in /home/jack/onboarding/node_modules/google-auth-library/lib/auth
@ ./~/google-auth-library/lib/auth/googleauth.js 21:11-35
Error in ./~/googleapis/lib/generator.js
Module not found: 'swig' in /home/jack/onboarding/node_modules/googleapis/lib
@ ./~/googleapis/lib/generator.js 21:11-26
Error in ./~/googleapis/lib/generator.js
Module not found: 'js-beautify' in /home/jack/onboarding/node_modules/googleapis/lib
@ ./~/googleapis/lib/generator.js 22:15-37
I can get rid of the errors fr js-beautify and swig by manually adding them to the dependencies but this doesn't work for child_process. Either way I feel like I'm doing something wrong here. Should the var google = require('googleapis'); not be inside the react App.js code? Any advice would be appreciated.
The text was updated successfully, but these errors were encountered:
I'm trying to use the Google API Node.js client on a new React Web app. Here's my package.json:
When I try and access the API in App.js with:
It won't compile and gives me:
Failed to compile.
I can get rid of the errors fr js-beautify and swig by manually adding them to the dependencies but this doesn't work for child_process. Either way I feel like I'm doing something wrong here. Should the var google = require('googleapis'); not be inside the react App.js code? Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: