title: t is not a function error in meteor app with react and tensorflow
body: <p>I'm working on a meteor app using react and tensorflow, the problem is that the console is throwing this error every time I run the app: <code>t is not a function</code>.
  can you help me please?
  This is my code:</p>
  <pre><code>import React, { useEffect } from 'react'
  import * as tf from '@tensorflow/tfjs'
  
  const Analysis =  () =&gt; {
  
      
  
      predictDisease = async () =&gt; {
          let tfModel = await tf.loadGraphModel('model/model.json')
          while (!tfModel) {
            await new Promise((resolve, reject) =&gt; {
              setTimeout(() =&gt; {
                resolve(true);
              }, 500)
            })
          }
          let img = document.getElementById('plant-photo')
          let offset = tf.scalar(255)
          let tensorImg = tf.browser.fromPixels(img).resizeNearestNeighbor([258, 258]).toFloat().expandDims();
          let tensorImg_scaled = tensorImg.div(offset)
          let prediction = await tfModel.predict(tensorImg_scaled).data();
      
          let predicted_class = tf.argMax(prediction)
          let class_idxs = Array.from(predicted_class.dataSync());
          // const diseases = [];
      
          
      
          return predicted_class;
        }
        console.log(predictDisease())
  return ( 
         &lt;img src=&quot;Images/bg.jpg&quot; alt=&quot;uploaded&quot; id='plant-photo' /&gt;
       );
  }
  export default Analysis;
  </code></pre>