title: "can't access lexical declaration 'players' before initialization"
body: <p>i am using modules in my javascript project.
  i searched the net for this problem, but could not find a solution to this problem in the context of modules.</p>
  <p>here's my code:</p>
  <p>(main.js):</p>
  <pre><code>         &quot;use strict&quot;;
           export let players = 1;
           import { string1 } from &quot;./cube.js&quot;;
  </code></pre>
  <p>(cube.js):</p>
  <pre><code>         &quot;use strict&quot;;
           import { players } from &quot;./main.js&quot;;
           export let string1 = &quot;text 1234&quot;;
           console.log(players);   // error: can't access lexical declaration 'players' before initialization
  </code></pre>
  <p>i thought since variable &quot;players&quot; is imported from &quot;main.js&quot; it should be accessible. i am probably blind to a little obvious thing but don't know what?</p>
  <p>can someone point me to the answer or solution to this problem please, thanks!!</p>