Skip to content

Not working with react #1614

@yankopetrov

Description

@yankopetrov

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

Metadata

Metadata

Labels

priority: p2Moderately-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.web

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions