title: Uncaught ReferenceError: jstz is not defined
body: <p>Hi am developing an application with Rails 6 using webpacker, am getting below javascript error.</p>
  <pre><code>    Uncaught ReferenceError: jstz is not defined
      at HTMLDocument.&lt;anonymous&gt; ((index):62)
      at fire (jquery.js:975)
      at Object.fireWith [as resolveWith] (jquery.js:1085)
      at Function.ready (jquery.js:407)
      at HTMLDocument.DOMContentLoaded (jquery.js:84)
  </code></pre>
  <p>I see webpacker compiled successfully</p>
  <pre><code>Entrypoint application = js/application-7e55ed0e528c94e39f58.js js/application-7e55ed0e528c94e39f58.js.map
  Entrypoint cookie = js/cookie-f1267dd65b07bdb515fe.js js/cookie-f1267dd65b07bdb515fe.js.map
  Entrypoint jquery = js/jquery-08b07c2f819304da36bb.js js/jquery-08b07c2f819304da36bb.js.map
  Entrypoint jstz = js/jstz-e4a49c2bcb34d7327712.js js/jstz-e4a49c2bcb34d7327712.js.map
  Entrypoint require = js/require-bbf43dd046c0adca977d.js js/require-bbf43dd046c0adca977d.js.map
  </code></pre>
  <pre><code>[./app/javascript/channels/index.js] 211 bytes {application} [built]
  [./app/javascript/packs/application.js] 1.46 KiB {application} [built]
  [./app/javascript/packs/cookie.js] 737 bytes {cookie} [built]
  [./app/javascript/packs/jquery.js] 289 KiB {jquery} [built]
  [./app/javascript/packs/jstz.min.js] 5.93 KiB {jstz} [built]
  [./app/javascript/packs/require.js] 25.8 KiB {require} [built]
  </code></pre>
  <p>am using jstz in my view file like below</p>
  <pre><code>&lt;%= javascript_pack_tag 'jstz'  %&gt;
  &lt;%= javascript_tag do -%&gt;
  jQuery(document).ready(function () {
    jQuery('#user_name').focus();
    jQuery('#user_time_zone').val(jstz.determine().name());
  });
  
  &lt;% end -%&gt;
  </code></pre>
  <p>please help me to resolve this issue am struggling for a long time, it really consumes more time.</p>