<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">my nextjs version is 9.1.7-canary.14,but it's still not work when I downgrade to 9.0.0<br>
here the code is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import Router from 'next/router';
...
handleClick = (index) =&gt; {
        Router.push('/user');
    };
...
&lt;div onClick={this.handleClick}&gt;click&lt;/div&gt;"><pre class="notranslate"><code class="notranslate">import Router from 'next/router';
...
handleClick = (index) =&gt; {
        Router.push('/user');
    };
...
&lt;div onClick={this.handleClick}&gt;click&lt;/div&gt;
</code></pre></div>
<p dir="auto">I've tried :<br>
import {withRouter} from'next/router'<br>
import Link from'next/link'<br>
and all above don't  work on ios10.x.x</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>create-<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-app">next-app</a> <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-demo">next-demo</a></li>
<li>cd <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-demo">next-demo</a> and create a new test page file in pages folder 'test.js',and then type some code in this file</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'
const Test = (props) =&gt; (
  &lt;div&gt;
    test
  &lt;/div&gt;
)
export default Test "><pre class="notranslate"><code class="notranslate">import React from 'react'
const Test = (props) =&gt; (
  &lt;div&gt;
    test
  &lt;/div&gt;
)
export default Test 
</code></pre></div>
<ol start="3" dir="auto">
<li>and add router to home page:<br>
import {useRouter}from 'next/router'<br>
const router=useRouter()<br>
the whole test content in home.js is:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from 'react'
import {useRouter}from 'next/router'
const Home = () =&gt; {
  const router=useRouter()
  const handleClick=()=&gt;{
    console.log('click')
    router.push('/test')}
  return (
  &lt;div&gt;
      &lt;h1 className=&quot;title&quot; onClick={handleClick}&gt;welcome to Next!&lt;/h1&gt;
  &lt;/div&gt;
)}
export default Home"><pre class="notranslate"><code class="notranslate">import React from 'react'
import {useRouter}from 'next/router'
const Home = () =&gt; {
  const router=useRouter()
  const handleClick=()=&gt;{
    console.log('click')
    router.push('/test')}
  return (
  &lt;div&gt;
      &lt;h1 className="title" onClick={handleClick}&gt;welcome to Next!&lt;/h1&gt;
  &lt;/div&gt;
)}
export default Home
</code></pre></div>
<ol start="4" dir="auto">
<li></li>
</ol>
<p dir="auto">start developing,run yarn dev,you will find that all above works well ,you click the h1 tag and page changed, but this will not work on ios 10.x.x</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">next/router support ios10.x.x</p>
<h2 dir="auto">Screenshots</h2>
<p dir="auto">If applicable, add screenshots to help explain your problem.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/36290410/71758467-fb2d0000-2eda-11ea-948e-6e82ae03e795.png"><img src="https://user-images.githubusercontent.com/36290410/71758467-fb2d0000-2eda-11ea-948e-6e82ae03e795.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS:ios10.0.1 and ios10.2 and  ios10.3  are tested,not work</li>
<li>Browser (if applies) [e.g. chrome, safari]</li>
<li>Version of Next.js:9.1.7 &amp;9.0.0 &amp;9.1.7-canary.14</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Add any other context about the problem here.</p>
<ul dir="auto">
<li>[x ] 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"><code class="notranslate">yarn build</code> should build app.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Failing with</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="yarn build v0.27.5
$ next build
&gt; Using external babel configuration
&gt; location: &quot;/Users/steida/dev/este/.babelrc&quot;
&gt; Using &quot;webpack&quot; config function defined in next.config.js.
(node:45475) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'indexOf' of null
(node:45475) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code."><pre class="notranslate">yarn build v0.27.5
$ next build
<span class="pl-k">&gt;</span> Using external babel configuration
<span class="pl-k">&gt;</span> location: <span class="pl-s"><span class="pl-pds">"</span>/Users/steida/dev/este/.babelrc<span class="pl-pds">"</span></span>
<span class="pl-k">&gt;</span> Using <span class="pl-s"><span class="pl-pds">"</span>webpack<span class="pl-pds">"</span></span> config <span class="pl-k">function</span> <span class="pl-en">defined</span> <span class="pl-k">in</span> next.config.js.
(node:45475) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot <span class="pl-c1">read</span> property <span class="pl-s"><span class="pl-pds">'</span>indexOf<span class="pl-pds">'</span></span> of null
(node:45475) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero <span class="pl-c1">exit</span> code.</pre></div>
<p dir="auto">3.0.1-beta.14 works.</p>