<p dir="auto">When going from Babel 4 to 5 I am getting this error and not sure where it is coming from.  Any ideas?</p>
<p dir="auto">My .babelrc is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;stage&quot;: 0,
  &quot;auxiliaryComment&quot;: &quot;istanbul ignore next&quot;
}"><pre class="notranslate"><code class="notranslate">{
  "stage": 0,
  "auxiliaryComment": "istanbul ignore next"
}
</code></pre></div>
<p dir="auto">The error is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:70
    throw err;
          ^
AssertionError: /Users/wavded/Projects/widnr/modules/models/User.js: undefined does not match type Pattern
    at Type.Tp.assert (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:53:16)
    at addPattern (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:220:24)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:167:9)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at NodePath.&lt;anonymous&gt; (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
    at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:149:14)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:176:13
    at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:627:18
    at Array.forEach (native)
    at Object.exports.eachField (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:626:27)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:173:15)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at NodePath.&lt;anonymous&gt; (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
    at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)"><pre class="notranslate"><code class="notranslate">/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/lib/babel/helpers/parse.js:70
    throw err;
          ^
AssertionError: /Users/wavded/Projects/widnr/modules/models/User.js: undefined does not match type Pattern
    at Type.Tp.assert (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:53:16)
    at addPattern (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:220:24)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:167:9)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at NodePath.&lt;anonymous&gt; (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
    at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:149:14)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:176:13
    at /Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:627:18
    at Array.forEach (native)
    at Object.exports.eachField (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/types.js:626:27)
    at recursiveScanScope (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:173:15)
    at recursiveScanChild (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:214:9)
    at NodePath.&lt;anonymous&gt; (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/scope.js:150:13)
    at NodePath.each (/Users/wavded/Projects/widnr/node_modules/babel/node_modules/babel-core/node_modules/ast-types/lib/path.js:96:22)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import foo from 'bar';
(function* () {});"><pre class="notranslate"><code class="notranslate">import foo from 'bar';
(function* () {});
</code></pre></div>
<p dir="auto">Compiling this raises <code class="notranslate">AssertionError: test.js: undefined does not match type Pattern</code></p>