TypeError: OAuth2Strategy requires a clientID option
2020-04-27T03:11:38.707330+00:00 app[web.1]: TypeError: OAuth2Strategy requires a clientID option
2020-04-27T03:11:38.707330+00:00 app[web.1]: at Strategy.OAuth2Strategy (/app/node_modules/passport-oauth2/lib/strategy.js:86:34)
2020-04-27T03:11:38.707331+00:00 app[web.1]: at new Strategy (/app/node_modules/passport-google-oauth20/lib/strategy.js:52:18)
2020-04-27T03:11:38.707331+00:00 app[web.1]: at Object.<anonymous> (/app/app.js:91:14)
2020-04-27T03:11:38.707331+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:1156:30)
2020-04-27T03:11:38.707332+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:1176:10)
2020-04-27T03:11:38.707332+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:1000:32)
2020-04-27T03:11:38.707333+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:899:14)
2020-04-27T03:11:38.707333+00:00 app[web.1]: at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12)
2020-04-27T03:11:38.707333+00:00 app[web.1]: at internal/main/run_main_module.js:18:47
Hello camper, hello @BenGitter, I have been working on same issue for days. I tried deploying my app on heroku it gave out an error. so I had to check out my logs, this is what i got
Bring out server.js out in the root folder. There is no need of seperate server folder!
One package.json and package-lock.json are enough to deploy your code.
In package.json you need to make a few changes, change the start script to ‘node server.js’
Also copy “@angular/cli” & “@angular/compiler-cli” form devDependencies to dependencies.
npm install express and path and then, you shall be good to go!
this is a useful link for react devs in order to avoid this issue
_https://medium.com/better-programming/how-to-deploy-your-react-app-to-heroku-aedc28b218ae