<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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>


<h2 dir="auto">Current Behavior</h2>


<h2 dir="auto">Steps to Reproduce (for bugs)</h2>


<ol dir="auto">
<li></li>
<li></li>
<li></li>
<li></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>next</td>
<td></td>
</tr>
<tr>
<td>node</td>
<td></td>
</tr>
<tr>
<td>OS</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
<p dir="auto">Problem with building next.js 6.0.0-canary with <code class="notranslate">transform-react-jsx-source</code> plugin.</p>
<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?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Success build as in stable next 5.x version</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Crash with output:</p>
<div class="highlight highlight-source-batchfile notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Module build failed: TypeError: Cannot read property 'filename' of undefined
    at PluginPass.JSXOpeningElement (...../node_modules/babel-plugin-transform-react-jsx-source/lib/index.js:32:38)"><pre class="notranslate">Module build failed: TypeError: Cannot read property 'filename' of undefined
    <span class="pl-k">at</span> PluginPass.JSXOpeningElement (...../node_modules/babel-plugin-transform-react-jsx-source/lib/index.js:32:38)</pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Setup custom babelrc with <code class="notranslate">transform-react-jsx-source</code> plugin</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  ...
   &quot;development&quot;: {
      &quot;plugins&quot;: [
        &quot;transform-react-display-name&quot;,
        &quot;transform-react-jsx-source&quot;, // &lt;1----
        &quot;transform-react-jsx-self&quot;
      ]
    },
  ...
}"><pre class="notranslate"><code class="notranslate">{
  ...
   "development": {
      "plugins": [
        "transform-react-display-name",
        "transform-react-jsx-source", // &lt;1----
        "transform-react-jsx-self"
      ]
    },
  ...
}
</code></pre></div>
<ol start="2" dir="auto">
<li><code class="notranslate">next start</code></li>
</ol>
<h2 dir="auto">Note</h2>
<p dir="auto">Without <code class="notranslate">transform-react-jsx-source</code> build process is successful.</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>6.0.0-canary.3</td>
</tr>
<tr>
<td>node</td>
<td>9.11.1</td>
</tr>
<tr>
<td>OS</td>
<td>Mac OS</td>
</tr>
<tr>
<td>deps</td>
<td>up-to-date</td>
</tr>
</tbody>
</table>