title: Uncaught TypeError: Cannot read properties of undefined (reading 'forEach') (using Parcel )
body: <pre><code>['hashchange' &amp;&amp;'load'].forEach(ev =&gt; 
  window.addEventListener(ev, controlRecipes))
  
  // window.addEventListener('hashchange', controlRecipes)
  // window.addEventListener('load', controlRecipes)
  </code></pre>
  <p>The following is the output from the CL</p>
  <blockquote>
  <p>controller.js:37 Uncaught TypeError: Cannot read properties of undefined (reading 'forEach')
  at Object.jKMjS../model.js (controller.js:37)
  at newRequire (index.436439df.js:71)
  at index.436439df.js:120
  at index.436439df.js:143</p>
  </blockquote>