title: Cannot find a node_module in TypeScript
body: <p>I have a problem with <a href="https://github.com/reactjs/reselect" rel="nofollow">reselect</a> package. It has typings inside the package, so if I've understood it correctly, typeScript should handle it itself. But any time I am trying to import it, I see <code>(5,32): error TS2307: Cannot find module 'reselect'</code>.</p>
  
  <p>Code is very simple:</p>
  
  <pre><code>/// &lt;reference path="../../../../node_modules/reselect/src/reselect.d.ts"/&gt;
  
  import { connect } from 'react-redux';
  import Actions from '../../redux/actions';
  import { createSelector } from 'reselect';
  import { MapDispatchToPropsObject } from 'react-redux';
  
  import { SearchCity } from './index';
  
  const mapStateToProps = (state) =&gt; ({
    places: state.searchPlaces,
  });
  
  const mapDispatchToProps: MapDispatchToPropsObject = {
    search: Actions.searchPlaces.searchPlace,
  };
  
  export default connect(mapStateToProps, mapDispatchToProps)(SearchCity);
  </code></pre>
  
  <p>Here I've added reference manually, but it doesn't work anyway.
  I use webpack with ts-loader.
  Thanks!</p>