-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
googleapis/node-gtoken
#186Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.web
Description
The base example is not working with react
When you include const { google } = require('googleapis') in the code, the application stop with an error:
TypeError: Expected `input` to be a `Function` or `Object`, got `undefined`
53 | var objType = typeof input;
54 |
55 | if (!(input !== null && (objType === 'object' || objType === 'function'))) {
> 56 | throw new TypeError("Expected `input` to be a `Function` or `Object`, got `".concat(input === null ? 'null' : objType, "`"));
| ^ 57 | }
58 |
59 | var filter = function filter(key) {
Found an issue exactly for this in stackoverflow, made 25 days ago and no answer/workaround yet: https://stackoverflow.com/questions/54468809/what-is-causing-typeerror-expected-input-to-be-a-function-or-object-issue
hristaki, jghorton14, avevlad, sohwendy, bvvy and 9 moreCrowbrammer
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.web