title: Module loading problems in Storybook in React (Cannot access 'some_variable' before initialization)
body: <p>I am having big problems with Storybook at the moment with respect to modules loading correctly.</p>
  
  <p>I can't really provide a self contained example, because the problems seem so erractic and hard to predict. </p>
  
  <p>Basically storybook is being run and it is trying to import files, however something is going wrong in this step. I am guessing there is some error in one of the dependencies down the line, or that there is a circular dependency somewhere.</p>
  
  <p>I am getting this error in all kinds of places :</p>
  
  <blockquote>
    <p>ReferenceError: Cannot access 'SOMETHING' before initialization</p>
  </blockquote>
  
  <p>Basically my storybook file looks something like this : </p>
  
  <pre><code>storiesOf('storybook test', module)
      .addDecorator(withKnobs)
      .add('a story ', () =&gt; {
          return (
              &lt;div&gt;
                  &lt;Provider store={store}&gt;
                      &lt;HashRouter pathname={"asdf"}&gt;
                          &lt;CSVImportFlow
                              step={"edit"}
                              entitySchemas={{}}
                          /&gt;
                      &lt;/HashRouter&gt;
                  &lt;/Provider&gt;
              &lt;/div&gt;
          )
      })
  </code></pre>
  
  <p>And these Reference Errors appear based on something being imported.</p>