<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/zeit/next.js/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">I should be able to use <code class="notranslate">withData</code> from the <a href="https://github.com/zeit/next.js/tree/5.0.0/examples/with-apollo">with-apollo example</a> and <code class="notranslate">translate</code> from react-i18next  HoCs together.</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">I've been using Apollo as per the <a href="https://github.com/zeit/next.js/tree/5.0.0/examples/with-apollo">with-apollo example</a> quite happily for some time and I'm now trying to integrate <a href="https://github.com/zeit/next.js/tree/5.0.0/examples/with-i18next">with-i18n</a>. Unfortunately I think there may be issues with combining the two approaches. I'm receiving the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Cannot read property 'options' of undefined
TypeError: Cannot read property 'options' of undefined
...
at new I18n node_modules/react-i18next/dist/commonjs/I18n.js:56:20"><pre class="notranslate"><code class="notranslate">Cannot read property 'options' of undefined
TypeError: Cannot read property 'options' of undefined
...
at new I18n node_modules/react-i18next/dist/commonjs/I18n.js:56:20
</code></pre></div>
<p dir="auto">It seems i18n isn't being initialised correctly (hence options of undefined (the i18n instance)), or is being overridden, perhaps because of the usage of <code class="notranslate">getInitialProps</code> in <code class="notranslate">withData.js</code>?</p>
<p dir="auto">Has anyone managed to get Next.JS, Apollo and i18n working together? Any working examples?</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li>Follow the steps to setup <a href="https://github.com/zeit/next.js/tree/5.0.0/examples/with-apollo">with-apollo example</a> and <a href="https://github.com/zeit/next.js/tree/5.0.0/examples/with-i18next">with-i18n</a></li>
<li>Create a page which is wrapped in <code class="notranslate">translate</code> from react-i18next and <code class="notranslate">withData</code> from the with-apollo example.</li>
<li>See error.</li>
</ol>
<h2 dir="auto">Context</h2>


<p dir="auto">I'm trying to integrate react-i18next into my current next/apollo setup.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>5.0.0</td>
</tr>
<tr>
<td>node</td>
<td>8.9.4</td>
</tr>
<tr>
<td>OS</td>
<td>macOS High Sierra</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></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/zeit/next.js/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">I can host a Next.js app on a GitHub Pages.</p>
<h2 dir="auto">Current Behavior</h2>


<p dir="auto">As far as I have digged into the issue, we can't host a Next.js app on a GitHub Pages because of the location of the hosting: <code class="notranslate">http://username.github.io/project-name/</code>. It would be working perfectly if we had<code class="notranslate">http://project-name.github.io/</code>.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Humm. I'm not sure it's relevant. I can provide something if it help. I noticed the issue with <a href="http://oliviertassinari.github.io/react-swipeable-views/" rel="nofollow">http://oliviertassinari.github.io/react-swipeable-views/</a>.</p>
<h2 dir="auto">Context</h2>


<p dir="auto"><a href="https://github.com/zeit/next.js/wiki/Deploying-a-Next.js-app-into-GitHub-Pages">Deploying a Next.js app into GitHub Pages</a> guide is misleading. It's not possible as far as I know.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.1.4</td>
</tr>
</tbody>
</table>