Can't understand console error: 'Uncaught TypeError: t is not a function'

muceyMuce picture muceyMuce · Feb 17, 2020 · Viewed 8.4k times · Source

I am attempting to host a Ruby on Rails / React app in Heroku. Also of not, I am using the package google-maps-react ( https://github.com/fullstackreact/google-maps-react ). Everything works locally, but when I push to heroku, nothing displays, and this error appears in console:

windowOrGlobal.js:18 Uncaught TypeError: t is not a function
    at Object.a (windowOrGlobal.js:18)
    at Object.<anonymous> (windowOrGlobal.js:5)
    at Object.<anonymous> (index-fb4bbac5de0de29c6900.js:2)
    at n (bootstrap:19)
    at Object.<anonymous> (ScriptCache.js:3)
    at n (bootstrap:19)
    at Object.<anonymous> (GoogleApiComponent.js:5)
    at n (bootstrap:19)
    at Object.<anonymous> (index.js:5)
    at n (bootstrap:19)

When I click on the top line from the error stack, it is this:

var _typeof = typeof Symbol === "function" && _typeof(Symbol.iterator) === "symbol" ? function (obj) {

Where is t being attempted to be called as a function? I can't figure out where that error could be coming from, when there is nothing attempting to call a function t().

Anyone have any clue what might be going on?

Answer