<p dir="auto">When I run example in nextjs. Do <code class="notranslate">yarn</code> and <code class="notranslate">yarn dev</code> to run the demo application. Hit to <code class="notranslate">http://localhost:3000</code> then it throw the error <code class="notranslate">is not a function</code></p>


<ul dir="auto">
<li>[ x ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>

<p dir="auto">Can call the <code class="notranslate">createGenerateClasName</code> as usually</p>
<h2 dir="auto">Current Behavior</h2>

<p dir="auto">Error throwed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: (0 , _styles.createGenerateClassName) is not a function
    at createContext (/Users/nampdn/Projects/wfc/@example/nextjs/styles/getContext.js:20:3)
    at getContext (/Users/nampdn/Projects/wfc/@example/nextjs/styles/getContext.js:35:5)
    at Function.MyDocument.getInitialProps (/Users/nampdn/Projects/wfc/@example/nextjs/pages/_document.js:61:3)
    at _callee$ (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/next/dist/lib/utils.js:36:30)
    at tryCatch (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/nampdn/Projects/wfc/@example/nextjs/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
    at new Promise (&lt;anonymous&gt;)"><pre class="notranslate"><code class="notranslate">TypeError: (0 , _styles.createGenerateClassName) is not a function
    at createContext (/Users/nampdn/Projects/wfc/@example/nextjs/styles/getContext.js:20:3)
    at getContext (/Users/nampdn/Projects/wfc/@example/nextjs/styles/getContext.js:35:5)
    at Function.MyDocument.getInitialProps (/Users/nampdn/Projects/wfc/@example/nextjs/pages/_document.js:61:3)
    at _callee$ (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/next/dist/lib/utils.js:36:30)
    at tryCatch (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:62:40)
    at Generator.invoke [as _invoke] (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:296:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/regenerator-runtime/runtime.js:114:21)
    at step (/Users/nampdn/Projects/wfc/@example/nextjs/node_modules/babel-runtime/helpers/asyncToGenerator.js:17:30)
    at /Users/nampdn/Projects/wfc/@example/nextjs/node_modules/babel-runtime/helpers/asyncToGenerator.js:35:14
    at new Promise (&lt;anonymous&gt;)
</code></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>

<ol dir="auto">
<li><code class="notranslate">curl https://codeload.github.com/mui-org/material-ui/tar.gz/v1-beta | tar -xz --strip=2  material-ui-1-beta/examples/nextjs</code></li>
<li><code class="notranslate">cd nextjs</code></li>
<li><code class="notranslate">yarn</code></li>
<li><code class="notranslate">yarn dev</code></li>
<li>Open browser: <code class="notranslate">http://localhost:3000</code></li>
</ol>
<h2 dir="auto">Context</h2>

<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.24</td>
</tr>
<tr>
<td>React</td>
<td>16.2</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>OS</td>
<td>MacOS</td>
</tr>
</tbody>
</table>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">App should start without issue with MUI compiling properly.</p>
<h2 dir="auto">Current Behavior</h2>

<p dir="auto">I get the following error after installing v0.20.0 and running <code class="notranslate">npm start</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to compile
./node_modules/@devexpress/dx-react-grid-material-ui/dist/dx-react-grid-material-ui.es.js
1071:4-18 'material-ui' does not contain an export named 'TableSortLabel'."><pre class="notranslate"><code class="notranslate">Failed to compile
./node_modules/@devexpress/dx-react-grid-material-ui/dist/dx-react-grid-material-ui.es.js
1071:4-18 'material-ui' does not contain an export named 'TableSortLabel'.
</code></pre></div>
<p dir="auto">When l look in the <code class="notranslate">node_modules</code> folder, there is no <code class="notranslate">TableSortLabel.js</code> file in the <code class="notranslate">Table</code> folder. I do see it in the repo though (<a href="https://github.com/mui-org/material-ui/blob/v1-beta/src/Table/TableSortLabel.js">https://github.com/mui-org/material-ui/blob/v1-beta/src/Table/TableSortLabel.js</a>).</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><code class="notranslate">npm uninstall material-ui</code></li>
<li><code class="notranslate">npm install material-ui@latest</code></li>
<li>Start your app (<code class="notranslate">npm start</code>, <code class="notranslate">yarn start</code>, etc.)</li>
<li>See the "Failed to Compile" error.</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Can not start app with lastest version of MUI.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.20.0</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>all</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>